We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e3bbb4 commit f41daeaCopy full SHA for f41daea
src/nw_custom_bindings.cc
@@ -269,9 +269,8 @@ void NWCustomBindings::EvalNWBin(
269
}
270
271
v8::Local<v8::ArrayBuffer> ab = args[1].As<v8::ArrayBuffer>();
272
- v8::ArrayBuffer::Contents contents = ab->GetContents();
273
- int64_t length = contents.ByteLength();
274
- uint8_t *data = reinterpret_cast<uint8_t*>(contents.Data());
+ int64_t length = ab->GetBackingStore()->ByteLength();
+ uint8_t *data = reinterpret_cast<uint8_t*>(ab->GetBackingStore()->Data());
275
276
WebFrame* main_frame = render_frame->GetWebFrame();
277
if (args.Length() > 3) {
0 commit comments