-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Add default implementation for Object.create(prototype) #47946
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D66485209 |
Summary: Add default implementation for `Object.create` with custom parent. This default implementation calls into the global object to get the `Object.create` function, and then calls that function with the prototype. Differential Revision: D66485209
6443d6c
to
e648407
Compare
This pull request was exported from Phabricator. Differential Revision: D66485209 |
Summary: Add default implementation for `Object.create` with custom parent. This default implementation calls into the global object to get the `Object.create` function, and then calls that function with the prototype. Differential Revision: D66485209
e648407
to
2fde5d7
Compare
This pull request was exported from Phabricator. Differential Revision: D66485209 |
2fde5d7
to
b3ff8ec
Compare
Summary: Object creation with custom prototype can currently be done, but it is unnecessarily convoluted. Users have to call into the global object to get the `Object.create` function, then call it with the custom prototype. This diff adds a JSI API for Object.create(prototype) to make it easy for users. Changelog: [Internal] Differential Revision: D66485209
This pull request was exported from Phabricator. Differential Revision: D66485209 |
b3ff8ec
to
9b21f8e
Compare
Summary: Object creation with custom prototype can currently be done, but it is unnecessarily convoluted. Users have to call into the global object to get the `Object.create` function, then call it with the custom prototype. This diff adds a JSI API for Object.create(prototype) to make it easy for users. Changelog: [Internal] Differential Revision: D66485209
This pull request was exported from Phabricator. Differential Revision: D66485209 |
…ject.setPrototypeOf (facebook#47996) Summary: Getting and setting an Object's prototype is convulted. Users have to call into the global object to get the method, then call it. This diff adds a JSI API for Object.getPrototype and Object.setPrototype to make it easy for users. Changelog: [Internal] Differential Revision: D66562549
Summary: Object creation with custom prototype can currently be done, but it is unnecessarily convoluted. Users have to call into the global object to get the `Object.create` function, then call it with the custom prototype. This diff adds a JSI API for Object.create(prototype) to make it easy for users. Changelog: [Internal] Differential Revision: D66485209
Summary: Object creation with custom prototype can currently be done, but it is unnecessarily convoluted. Users have to call into the global object to get the `Object.create` function, then call it with the custom prototype. This diff adds a JSI API for Object.create(prototype) to make it easy for users. Changelog: [Internal] Differential Revision: D66485209
9b21f8e
to
6c33ede
Compare
This pull request was exported from Phabricator. Differential Revision: D66485209 |
6c33ede
to
57071c5
Compare
This pull request was exported from Phabricator. Differential Revision: D66485209 |
Summary:
Add default implementation for
Object.create
with custom parent. Thisdefault implementation calls into the global object to get the
Object.create
function, and then calls that function with theprototype.
Differential Revision: D66485209