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
@@ -47,6 +49,12 @@ rules:
4749 message : " Use `const { Symbol } = primordials;` instead of the global."
4850 - name : Uint16Array
4951 message : " Use `const { Uint16Array } = primordials;` instead of the global."
52+ - name : Uint32Array
53+ message : " Use `const { Uint32Array } = primordials;` instead of the global."
54+ - name : Uint8Array
55+ message : " Use `const { Uint8Array } = primordials;` instead of the global."
56+ - name : Uint8ClampedArray
57+ message : " Use `const { Uint8ClampedArray } = primordials;` instead of the global."
5058 - name : WeakMap
5159 message : " Use `const { WeakMap } = primordials;` instead of the global."
5260 - 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
@@ -400,7 +401,7 @@ function SlowBuffer(length) {
400401 return createUnsafeBuffer ( length ) ;
401402}
402403
403- ObjectSetPrototypeOf ( SlowBuffer . prototype , Uint8Array . prototype ) ;
404+ ObjectSetPrototypeOf ( SlowBuffer . prototype , Uint8ArrayPrototype ) ;
404405ObjectSetPrototypeOf ( SlowBuffer , Uint8Array ) ;
405406
406407function allocate ( size ) {
Original file line number Diff line number Diff line change 55 Float32Array,
66 MathFloor,
77 Number,
8+ Uint8Array,
89} = primordials ;
910
1011const {
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 @@ -17,6 +17,7 @@ const {
1717 SetPrototype,
1818 SetPrototypeHas,
1919 StringPrototypeReplace,
20+ Uint32Array,
2021} = primordials ;
2122
2223const {
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 @@ -52,6 +52,10 @@ const {
5252 SymbolIterator,
5353 SymbolToStringTag,
5454 Uint16Array,
55+ Uint32Array,
56+ Uint8Array,
57+ Uint8ArrayPrototype,
58+ Uint8ClampedArray,
5559 uncurryThis,
5660} = primordials ;
5761
@@ -132,7 +136,7 @@ const mapSizeGetter = uncurryThis(
132136 ObjectGetOwnPropertyDescriptor ( MapPrototype , 'size' ) . get ) ;
133137const typedArraySizeGetter = uncurryThis (
134138 ObjectGetOwnPropertyDescriptor (
135- ObjectGetPrototypeOf ( Uint8Array . prototype ) , 'length' ) . get ) ;
139+ ObjectGetPrototypeOf ( Uint8ArrayPrototype ) , 'length' ) . get ) ;
136140
137141let hexSlice ;
138142
You can’t perform that action at this time.
0 commit comments