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 — lib: check SharedArrayBuffer availability in freeze_intrinsics.js · nodejs/node@00608e8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • freeze_intrinsics.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/freeze_intrinsics.js‎

Copy file name to clipboardExpand all lines: lib/internal/freeze_intrinsics.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ module.exports = function() {
203203

204204
// 25 Structured Data
205205
ArrayBufferPrototype, // 25.1
206-
SharedArrayBuffer.prototype, // 25.2
207206
DataViewPrototype, // 25.3
208207

209208
// 26 Managing Memory
@@ -309,7 +308,6 @@ module.exports = function() {
309308

310309
// 25 Structured Data
311310
ArrayBuffer, // 25.1
312-
SharedArrayBuffer, // 25.2
313311
DataView, // 25.3
314312
Atomics, // 25.4
315313
// eslint-disable-next-line node-core/prefer-primordials
@@ -354,6 +352,11 @@ module.exports = function() {
354352
WebAssembly,
355353
];
356354

355+
if (typeof SharedArrayBuffer !== 'undefined') { // 25.2
356+
ArrayPrototypePush(intrinsicPrototypes, SharedArrayBuffer.prototype);
357+
ArrayPrototypePush(intrinsics, SharedArrayBuffer);
358+
}
359+
357360
if (typeof Intl !== 'undefined') {
358361
ArrayPrototypePush(intrinsicPrototypes,
359362
Intl.Collator.prototype,

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.