-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
lib: create primordials in every context #27171
Conversation
Object, | ||
Symbol | ||
} = primordials; | ||
|
||
class ERR_INVALID_THIS extends TypeError { |
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.
On a side note, we'd probably want to make the Errors part of primordials too, but I am not yet sure how this would work for e.g. error-serdes, or if how it works with our internal errors (because we do need to assign properties to the instances dynamically, they probably can't be frozen).
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.
Thanks!
#27146 landed and there's a small conflict. |
This allows us to use primordials in other per-context scripts.
ffad5aa
to
81ee19d
Compare
Landed in dfd7e99...914d6c9 |
This allows us to use primordials in other per-context scripts. PR-URL: #27171 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #27171 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
lib: create primordials in every context
This allows us to use primordials in other per-context scripts.
lib: use primordials in domexception.js
To complete #27146
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes