File tree Expand file tree Collapse file tree 13 files changed +29
-3
lines changed Expand file tree Collapse file tree 13 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1111 - error
1212 - name : Array
1313 message : " Use `const { Array } = primordials;` instead of the global."
14+ - name : ArrayBuffer
15+ message : " Use `const { ArrayBuffer } = primordials;` instead of the global."
1416 - name : BigInt
1517 message : " Use `const { BigInt } = primordials;` instead of the global."
1618 - name : BigInt64Array
@@ -67,6 +69,12 @@ rules:
6769 message : " Use `const { URIError } = primordials;` instead of the global."
6870 - name : Uint16Array
6971 message : " Use `const { Uint16Array } = primordials;` instead of the global."
72+ - name : Uint32Array
73+ message : " Use `const { Uint32Array } = primordials;` instead of the global."
74+ - name : Uint8Array
75+ message : " Use `const { Uint8Array } = primordials;` instead of the global."
76+ - name : Uint8ClampedArray
77+ message : " Use `const { Uint8ClampedArray } = primordials;` instead of the global."
7078 - name : WeakMap
7179 message : " Use `const { WeakMap } = primordials;` instead of the global."
7280 - name : WeakSet
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const {
3939 ObjectSetPrototypeOf,
4040 SymbolSpecies,
4141 SymbolToPrimitive,
42+ Uint8Array,
4243 Uint8ArrayPrototype,
4344} = primordials ;
4445
@@ -403,7 +404,7 @@ function SlowBuffer(length) {
403404 return createUnsafeBuffer ( length ) ;
404405}
405406
406- ObjectSetPrototypeOf ( SlowBuffer . prototype , Uint8Array . prototype ) ;
407+ ObjectSetPrototypeOf ( SlowBuffer . prototype , Uint8ArrayPrototype ) ;
407408ObjectSetPrototypeOf ( SlowBuffer , Uint8Array ) ;
408409
409410function allocate ( size ) {
Original file line number Diff line number Diff line change 66 Float64Array,
77 MathFloor,
88 Number,
9+ Uint8Array,
910} = primordials ;
1011
1112const {
Original file line number Diff line number Diff line change 55 ObjectDefineProperty,
66 ObjectSetPrototypeOf,
77 Symbol,
8+ Uint8Array,
89} = primordials ;
910
1011const {
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ const {
1010 ObjectGetOwnPropertyDescriptors,
1111 Symbol,
1212 SymbolToStringTag,
13+ Uint32Array,
14+ Uint8Array,
1315} = primordials ;
1416
1517const {
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ const {
1515 ReflectGetPrototypeOf,
1616 Set,
1717 Symbol,
18+ Uint32Array,
19+ Uint8Array,
1820} = primordials ;
1921
2022const {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const {
1818 SetPrototype,
1919 SetPrototypeHas,
2020 StringPrototypeReplace,
21+ Uint32Array,
2122} = primordials ;
2223
2324const {
Original file line number Diff line number Diff line change 22
33const {
44 SymbolIterator,
5+ Uint8Array,
56} = primordials ;
67
78const { Buffer } = require ( 'buffer' ) ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const {
2020 StringPrototypeValueOf,
2121 SymbolPrototypeValueOf,
2222 SymbolToStringTag,
23+ Uint8Array,
2324} = primordials ;
2425
2526const { compare } = internalBinding ( 'buffer' ) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ const {
5858 SymbolIterator,
5959 SymbolToStringTag,
6060 Uint16Array,
61+ Uint32Array,
62+ Uint8Array,
63+ Uint8ArrayPrototype,
64+ Uint8ClampedArray,
6165 uncurryThis,
6266} = primordials ;
6367
@@ -138,7 +142,7 @@ const mapSizeGetter = uncurryThis(
138142 ObjectGetOwnPropertyDescriptor ( MapPrototype , 'size' ) . get ) ;
139143const typedArraySizeGetter = uncurryThis (
140144 ObjectGetOwnPropertyDescriptor (
141- ObjectGetPrototypeOf ( Uint8Array . prototype ) , 'length' ) . get ) ;
145+ ObjectGetPrototypeOf ( Uint8ArrayPrototype ) , 'length' ) . get ) ;
142146
143147let hexSlice ;
144148
You can’t perform that action at this time.
0 commit comments