Closed vmoroz closed 5 months ago
This PR updates the JSI to the latest version. We assign each JSI change a version and it now corresponds to the version 12. New methods:
queueMicrotask
setExternalMemoryPressure
This PR also adds implementation of several JSI methods that were not implemented yet:
drainMicrotasks
explicitMicrotaskPolicy
createWeakObject
lockWeakObject
createBigIntFromInt64
createBigIntFromUint64
bigintIsInt64
bigintIsUint64
bigintToString
hasNativeState
getNativeState
setNativeState
createArrayBuffer
New JSI tests to pass:
New extended JSI tests to pass (adopted from Hermes API tests):
Note that in this PR we disabled JSI tests for Node-API-JSI. They are going to be restored in future PRs.
This PR updates the JSI to the latest version. We assign each JSI change a version and it now corresponds to the version 12. New methods:
queueMicrotask
(version 12)setExternalMemoryPressure
(version 11) (not implemented yet)This PR also adds implementation of several JSI methods that were not implemented yet:
drainMicrotasks
for explicit micro task queue draining when the newexplicitMicrotaskPolicy
argument flag is true.createWeakObject
andlockWeakObject
createBigIntFromInt64
,createBigIntFromUint64
,bigintIsInt64
,bigintIsUint64
,bigintToString
hasNativeState
,getNativeState
,setNativeState
createArrayBuffer
New JSI tests to pass:
New extended JSI tests to pass (adopted from Hermes API tests):
Note that in this PR we disabled JSI tests for Node-API-JSI. They are going to be restored in future PRs.
Microsoft Reviewers: Open in CodeFlow