-
-
Notifications
You must be signed in to change notification settings - Fork 407
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] - Fix String.prototype[@@iterator]
#2800
Conversation
Test262 conformance changes
Fixed tests (4):
|
Codecov Report
@@ Coverage Diff @@
## main #2800 +/- ##
==========================================
+ Coverage 50.57% 50.58% +0.01%
==========================================
Files 415 415
Lines 41207 41209 +2
==========================================
+ Hits 20841 20847 +6
+ Misses 20366 20362 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Benchmark for e377847Click 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.
Nice change!
bors r+ |
It changes the following: - Fixes`Symbol.prototype[@@iterator]` so it calls `RequireObjectCoercible` and then `ToString` - Makes string iterator store a `JsString` which should be faster, instead of `JsValue` then calling `ToString` on every iteration
Pull request successfully merged into main. Build succeeded: |
Symbol.prototype[@@iterator]
Symbol.prototype[@@iterator]
Symbol.prototype[@@iterator]
String.prototype[@@iterator]
It changes the following:
String.prototype[@@iterator]
so it callsRequireObjectCoercible
and thenToString
JsString
which should be faster, instead ofJsValue
then callingToString
on every iteration