File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,8 @@ const BLACKLIST_FUNCTIONS: &'static [&'static str] = &[
557
557
"JS::GetScriptTranscodingBuildId" ,
558
558
"JS::GetScriptedCallerPrivate" ,
559
559
"JS::MaybeGetScriptPrivate" ,
560
+ "JS::NewArrayBufferWithContents" ,
561
+ "JS::NewExternalArrayBuffer" ,
560
562
"JS::dbg::FireOnGarbageCollectionHook" ,
561
563
"JS_EncodeStringToUTF8BufferPartial" ,
562
564
"JS_GetEmptyStringValue" ,
Original file line number Diff line number Diff line change @@ -107,6 +107,12 @@ JSObject* NewExternalArrayBuffer(
107
107
return NewExternalArrayBuffer (cx, nbytes, std::move (dataPtr));
108
108
}
109
109
110
+ JSObject* NewArrayBufferWithContents (
111
+ JSContext* cx, size_t nbytes, void * contents) {
112
+ js::UniquePtr<void , JS::FreePolicy> dataPtr{contents};
113
+ return NewArrayBufferWithContents (cx, nbytes, contents);
114
+ }
115
+
110
116
// Reexport some methods
111
117
112
118
bool JS_ForOfIteratorInit (
You can’t perform that action at this time.
0 commit comments