Skip to content

Commit 06d17e6

Browse files
targosnodejs-github-bot
authored andcommitted
src: add missing handle scope to fast API
V8 now requires it for `ArrayBufferView->Buffer()`.
1 parent d2bf44a commit 06d17e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_buffer.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,7 @@ uint32_t FastWriteString(Local<Value> receiver,
14771477
uint32_t max_length,
14781478
// NOLINTNEXTLINE(runtime/references) This is V8 api.
14791479
v8::FastApiCallbackOptions& options) {
1480+
HandleScope handle_scope(options.isolate);
14801481
THROW_AND_RETURN_VAL_UNLESS_BUFFER(options.isolate, dst, "dst", 0);
14811482
SPREAD_BUFFER_ARG(dst, dst_buffer);
14821483
CHECK(dst_buffer_length <=

0 commit comments

Comments
 (0)