-
Notifications
You must be signed in to change notification settings - Fork 850
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
Implement Symbol.prototype and other related Symbol and type coersion changes #1611
Draft
tonygermano
wants to merge
12
commits into
mozilla:master
Choose a base branch
from
tonygermano:symbols
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Sep 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a6c3668 - Browse repository at this point
Copy the full SHA a6c3668View commit details -
Configuration menu - View commit details
-
Copy full SHA for 400292c - Browse repository at this point
Copy the full SHA 400292cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9664e77 - Browse repository at this point
Copy the full SHA 9664e77View commit details -
Configuration menu - View commit details
-
Copy full SHA for e17cc25 - Browse repository at this point
Copy the full SHA e17cc25View commit details -
Update toNumber, toBigInt, toString, toNumeric to use toPrimitive
Also improved Symbol handling in these methods. Removed checks, warnings, and return values for non-JS objects. The warnings must have been going unnoticed, because NativeArray::js_includes had been trying to convert UniqueTag.NOT_FOUND to a length for non-array-like 'this' values, so that was corrected as well.
Configuration menu - View commit details
-
Copy full SHA for 97a5d7f - Browse repository at this point
Copy the full SHA 97a5d7fView commit details -
Fix a bunch of instance checks for Symbol to isSymbol()
And fix a spelling error.
Configuration menu - View commit details
-
Copy full SHA for eb066d0 - Browse repository at this point
Copy the full SHA eb066d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04a4d53 - Browse repository at this point
Copy the full SHA 04a4d53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45bdf4c - Browse repository at this point
Copy the full SHA 45bdf4cView commit details -
Update NativeDate::jsConstructor to call toPrimitive
ScriptRuntime.toPrimitive(Object, Class<?>) with a nullable instead of Optional type hint has also been added back to ScriptRuntime as a deprecated method.
Configuration menu - View commit details
-
Copy full SHA for 8584fcc - Browse repository at this point
Copy the full SHA 8584fccView commit details -
Implement Date.prototype[Symbol.toPrimitive]
Also, updated Symbol.prototype[Symbol.toPrimitive] to standardize the function name to what is in the spec.
Configuration menu - View commit details
-
Copy full SHA for e31e893 - Browse repository at this point
Copy the full SHA e31e893View commit details -
Configuration menu - View commit details
-
Copy full SHA for 835cac3 - Browse repository at this point
Copy the full SHA 835cac3View commit details
Commits on Sep 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 40b7494 - Browse repository at this point
Copy the full SHA 40b7494View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.