Skip to content

Commit 1458b66

Browse files
committed
memory.exec just peeks current contents rather than externalize arraybuffer
1 parent 2953432 commit 1458b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/UnrealJS/Source/V8/Private/JavascriptIsolate_Private.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,12 +849,12 @@ class FJavascriptIsolateImplementation : public FJavascriptIsolate
849849
auto arr = info[0].As<ArrayBuffer>();
850850
auto function = info[1].As<Function>();
851851

852-
GCurrentContents = arr->Externalize();
852+
GCurrentContents = arr->GetContents();
853853

854854
Handle<Value> argv[1];
855855
argv[0] = arr;
856856
function->Call(info.This(), 1, argv);
857-
arr->Neuter();
857+
858858
GCurrentContents = v8::ArrayBuffer::Contents();
859859
}
860860
else

0 commit comments

Comments
 (0)