TypeError: Math.floor is not a function. (In 'Math.floor(s*10)', 'Math.floor' is 6.4)
- Dominant language
- Ruby
- Stars
- 548
- Forks
- 168
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 22
Description
## Error
```
Math.floor is not a function. (In 'Math.floor(s*10)', 'Math.floor' is 6.4)
```
## Stack trace
```
../node_modules/@codemirror/view/dist/index.js:5058 in HeightOracle.mustRefreshForHeights
../node_modules/@codemirror/view/dist/index.js:6005 in ViewState.measure
../node_modules/@codemirror/view/dist/index.js:7718 in EditorView.measure
../node_modules/@sentry/browser/src/helpers.ts:117 in sentryWrapped
```
## Tracking Details
- **Project**: exercism-js
- **Sentry**: [TypeError: Math.floor is not a function. (In 'Math.floor(s*10)', 'Math.floor' is 6.4)](https://thalamus-ai.sentry.io/issues/145230497/)
- **Culprit**: HeightOracle.mustRefreshForHeights(@codemirror/view/dist/index)
- **First seen:** Sep 6, 2026
Contributor guide
Research direction
Start with the Sentry report and the @codemirror/view stack trace, especially HeightOracle.mustRefreshForHeights in the referenced dist/index.js location. Reproduce the Math.floor failure in the website editor, identify the relevant dependency or integration cause, and confirm the error no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100