-
-
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] - Cleanup intrinsics and move to realm #2555
Conversation
Test262 conformance changes
Fixed tests (6):
|
Codecov Report
@@ Coverage Diff @@
## main #2555 +/- ##
==========================================
- Coverage 49.87% 49.53% -0.34%
==========================================
Files 380 376 -4
Lines 37945 37734 -211
==========================================
- Hits 18925 18693 -232
- Misses 19020 19041 +21
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Amazing work!
I really like the new builtin initialization. The separated traits make it clear what exactly the builtin object is and how it is used.
bfca309
to
42f439b
Compare
d86ad79
to
af945c0
Compare
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+ |
Small (ish?) step towards having proper realm records This PR changes the following: - Moves `Intrinsics` to `Realm`. - Cleans up the initialization logic of our intrinsics to not depend on `Context`, unblocking things like #2314. - Adds hooks to initialize the global object and the global this per the corresponding [`InitializeHostDefinedRealm ( )`](https://tc39.es/ecma262/#sec-initializehostdefinedrealm) hook. Though, this is currently broken because the vm uses `GlobalPropertyMap` instead of the `JsObject` API to initialize global properties.
Pull request successfully merged into main. Build succeeded: |
Small (ish?) step towards having proper realm records
This PR changes the following:
Intrinsics
toRealm
.Context
, unblocking things like create intrinsics lazily, after we know parsing is successful. fixes #2307 #2314.InitializeHostDefinedRealm ( )
hook. Though, this is currently broken because the vm usesGlobalPropertyMap
instead of theJsObject
API to initialize global properties.