Add default implementation for Object.create(prototype)#47946
Add default implementation for Object.create(prototype)#47946tsaichien wants to merge 2 commits into
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D66485209 |
6443d6c to
e648407
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66485209 |
e648407 to
2fde5d7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66485209 |
2fde5d7 to
b3ff8ec
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66485209 |
b3ff8ec to
9b21f8e
Compare
|
This pull request was exported from Phabricator. 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 |
57071c5 to
805cbe1
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66485209 |
…ject.setPrototypeOf (facebook#47996) Summary: Getting and setting an Object's prototype is convoluted. 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] Reviewed By: fbmal7 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] Reviewed By: avp Differential Revision: D66485209
805cbe1 to
32fc0c7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66485209 |
Summary: X-link: facebook/react-native#47946 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] Reviewed By: avp Differential Revision: D66485209 fbshipit-source-id: 32018f847190ac16f695f011a78be0c45c4c4659
Summary: X-link: facebook/react-native#47946 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] Reviewed By: avp Differential Revision: D66485209 fbshipit-source-id: 32018f847190ac16f695f011a78be0c45c4c4659
|
This pull request has been merged in e34c1e9. |
Summary: X-link: facebook/react-native#47946 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] Reviewed By: avp Differential Revision: D66485209 fbshipit-source-id: 32018f847190ac16f695f011a78be0c45c4c4659
Summary:
Add default implementation for
Object.createwith custom parent. Thisdefault implementation calls into the global object to get the
Object.createfunction, and then calls that function with theprototype.
Differential Revision: D66485209