Skip to content

Commit

Permalink
src: don't assume v8::Local is using-declared
Browse files Browse the repository at this point in the history
PR-URL: #11464
Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
TimothyGu authored and italoacasas committed Feb 25, 2017
1 parent 6bcc841 commit beda326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class BufferValue : public MaybeStackBuffer<char> {

#define SPREAD_BUFFER_ARG(val, name) \
CHECK((val)->IsUint8Array()); \
Local<v8::Uint8Array> name = (val).As<v8::Uint8Array>(); \
v8::Local<v8::Uint8Array> name = (val).As<v8::Uint8Array>(); \
v8::ArrayBuffer::Contents name##_c = name->Buffer()->GetContents(); \
const size_t name##_offset = name->ByteOffset(); \
const size_t name##_length = name->ByteLength(); \
Expand Down

0 comments on commit beda326

Please sign in to comment.