File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -130,14 +130,13 @@ const freezeTypedArray = array => {
130
130
*/
131
131
export const makeHardener = ( ) => {
132
132
// TODO Get the native hardener to suppressTrapping at each step,
133
- // rather than freeze. Until then, we cannot use it, which is *expensive*!
134
- // TODO Comment out the following to skip the native hardener.
133
+ // rather than freeze. Until then, it is *expensive*!
135
134
//
136
- // Use a native hardener if possible.
137
- if ( typeof globalThis . harden === 'function' ) {
138
- const safeHarden = globalThis . harden ;
139
- return safeHarden ;
140
- }
135
+ // // Use a native hardener if possible.
136
+ // if (typeof globalThis.harden === 'function') {
137
+ // const safeHarden = globalThis.harden;
138
+ // return safeHarden;
139
+ // }
141
140
142
141
const hardened = new WeakSet ( ) ;
143
142
You can’t perform that action at this time.
0 commit comments