Skip to content

Commit f41daea

Browse files
committed
Fix ArrayBuffer usage in src/nw_custom_bindings.cc
1 parent 4e3bbb4 commit f41daea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/nw_custom_bindings.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,8 @@ void NWCustomBindings::EvalNWBin(
269269
}
270270

271271
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());
272+
int64_t length = ab->GetBackingStore()->ByteLength();
273+
uint8_t *data = reinterpret_cast<uint8_t*>(ab->GetBackingStore()->Data());
275274

276275
WebFrame* main_frame = render_frame->GetWebFrame();
277276
if (args.Length() > 3) {

0 commit comments

Comments
 (0)