File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,26 @@ CHAKRA_API JsPrivateCollectGarbageSkipStack(_In_ JsRuntimeHandle runtimeHandle)
463
463
{
464
464
return JsCollectGarbageCommon<CollectNowExhaustiveSkipStack>(runtimeHandle);
465
465
}
466
+
467
+ CHAKRA_API JsPrivateDetachArrayBuffer (_In_ JsValueRef ref, _Out_ void ** detachedState)
468
+ {
469
+ return GlobalAPIWrapper_NoRecord ([&]() -> JsErrorCode
470
+ {
471
+ VALIDATE_JSREF (ref);
472
+ *detachedState = Js::JavascriptOperators::DetachVarAndGetState (ref);
473
+ return JsNoError;
474
+ });
475
+ }
476
+
477
+ CHAKRA_API JsPrivateFreeDetachedArrayBuffer (_In_ void * detachedState)
478
+ {
479
+ return GlobalAPIWrapper_NoRecord ([&]() -> JsErrorCode
480
+ {
481
+ auto state = reinterpret_cast <Js::ArrayBufferDetachedStateBase*>(detachedState);
482
+ state->CleanUp ();
483
+ return JsNoError;
484
+ });
485
+ }
466
486
#endif
467
487
468
488
CHAKRA_API JsDisposeRuntime (_In_ JsRuntimeHandle runtimeHandle)
You can’t perform that action at this time.
0 commit comments