Skip to content

Commit 65e8190

Browse files
committed
memory.exec passing array buffer as first arg
1 parent 4097d94 commit 65e8190

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,10 @@ class FJavascriptIsolateImplementation : public FJavascriptIsolate
837837
auto function = info[1].As<Function>();
838838

839839
GCurrentContents = arr->Externalize();
840-
function->Call(info.This(), 0, nullptr);
840+
841+
Handle<Value> argv[1];
842+
argv[0] = arr;
843+
function->Call(info.This(), 1, argv);
841844
arr->Neuter();
842845
GCurrentContents = v8::ArrayBuffer::Contents();
843846
}

0 commit comments

Comments
 (0)