GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: set arraybuffer_untransferable_private_symbol · johnhenry/node@90f7a5c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_buffer.cc
    • node_http2.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_buffer.cc‎

Copy file name to clipboardExpand all lines: src/node_buffer.cc
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,10 @@ void Initialize(Local<Object> target,
12131213
// TODO(thangktran): drop this check when V8 is pumped to 8.0 .
12141214
if (!array_buffer->IsExternal())
12151215
array_buffer->Externalize(array_buffer->GetBackingStore());
1216+
array_buffer->SetPrivate(
1217+
env->context(),
1218+
env->arraybuffer_untransferable_private_symbol(),
1219+
True(env->isolate())).Check();
12161220
CHECK(target
12171221
->Set(env->context(),
12181222
FIXED_ONE_BYTE_STRING(env->isolate(), "zeroFill"),
Collapse file

‎src/node_http2.cc‎

Copy file name to clipboardExpand all lines: src/node_http2.cc
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,9 @@ Http2Session::Http2Session(Environment* env,
578578
// TODO(thangktran): drop this check when V8 is pumped to 8.0 .
579579
if (!ab->IsExternal())
580580
ab->Externalize(ab->GetBackingStore());
581+
ab->SetPrivate(env->context(),
582+
env->arraybuffer_untransferable_private_symbol(),
583+
True(env->isolate())).Check();
581584
js_fields_ab_.Reset(env->isolate(), ab);
582585
Local<Uint8Array> uint8_arr =
583586
Uint8Array::New(ab, 0, kSessionUint8FieldCount);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.