Skip to content

Commit

Permalink
v8: refactor to use more primordials
Browse files Browse the repository at this point in the history
PR-URL: nodejs#36285
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
aduh95 authored and cjihrig committed Dec 8, 2020
1 parent a864d7a commit 1c12838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const {
Int16Array,
Int32Array,
Int8Array,
Map,
ObjectPrototypeToString,
SafeMap,
Uint16Array,
Uint32Array,
Uint8Array,
Expand Down Expand Up @@ -194,7 +194,7 @@ const arrayBufferViewTypes = [Int8Array, Uint8Array, Uint8ClampedArray,
Int16Array, Uint16Array, Int32Array, Uint32Array,
Float32Array, Float64Array, DataView];

const arrayBufferViewTypeToIndex = new Map();
const arrayBufferViewTypeToIndex = new SafeMap();

{
const dummy = new ArrayBuffer();
Expand Down

0 comments on commit 1c12838

Please sign in to comment.