-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Remove toInteger
and document the string
builtin
#1884
Conversation
Test262 conformance changesVM implementation
Fixed tests (36):
|
Benchmark for 56d66c4Click to view benchmark
|
Codecov Report
@@ Coverage Diff @@
## main #1884 +/- ##
==========================================
- Coverage 46.75% 46.60% -0.16%
==========================================
Files 204 205 +1
Lines 16755 16729 -26
==========================================
- Hits 7834 7796 -38
- Misses 8921 8933 +12
Continue to review full report at Codecov.
|
Benchmark for 05a8eb6Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
bors r+ |
The ECMAScript 2022 specification removes the `toInteger` method, and replaces it with `toIntegerOrInfinity`, which is arguably better for us since the `JsValue::toInteger` returns an `f64`, which is pretty confusing at times. This pull request removes the `JsValue::to_integer` method, replaces all its calls by `JsValue::to_integer_or_infinity` or others per the spec and documents several methods from the `string` builtin.
Pull request successfully merged into main. Build succeeded: |
toInteger
and document the string
builtintoInteger
and document the string
builtin
The ECMAScript 2022 specification removes the
toInteger
method, and replaces it withtoIntegerOrInfinity
, which is arguably better for us since theJsValue::toInteger
returns anf64
, which is pretty confusing at times.This pull request removes the
JsValue::to_integer
method, replaces all its calls byJsValue::to_integer_or_infinity
or others per the spec and documents several methods from thestring
builtin.