Skip to content

Commit 2f52159

Browse files
committed
fixup! fix: replace v8::Object::SetPrototype() usage https://chromium-review.googlesource.com/c/v8/v8/+/6983465 nodejs/node#55453
1 parent fd0a7b6 commit 2f52159

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/node/src_switch_from_get_setprototype_to_get_setprototypev2.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ index de3d1f2f1832740b24480267f8c573794179859c..6e1680a74e21240ab99be86dcf23e60a
5151
return GET_RETURN_STATUS(env);
5252
}
5353
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
54-
index c94b14741c827a81d69a6f036426a344e563ad72..c88a101b435418a69d0593e5c6a6de2441eb8d8e 100644
54+
index c94b14741c827a81d69a6f036426a344e563ad72..15129e4455fdc8792f21511a04d534ba3a4ebb5f 100644
5555
--- a/src/node_buffer.cc
5656
+++ b/src/node_buffer.cc
5757
@@ -284,8 +284,9 @@ MaybeLocal<Uint8Array> New(Environment* env,
@@ -62,7 +62,7 @@ index c94b14741c827a81d69a6f036426a344e563ad72..c88a101b435418a69d0593e5c6a6de24
6262
- .IsNothing()) {
6363
+ Maybe<bool> mb =
6464
+ ui->SetPrototypeV2(env->context(), env->buffer_prototype_object());
65-
+ if (mb.IsNothing())
65+
+ if (mb.IsNothing()) {
6666
return MaybeLocal<Uint8Array>();
6767
}
6868
return ui;

0 commit comments

Comments
 (0)