| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 13de4cf commit 9ad611c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,6 @@ const { | |||
| 46 | 46 | ObjectGetPrototypeOf, | |
| 47 | 47 | ObjectPreventExtensions, | |
| 48 | 48 | ObjectSetPrototypeOf, | |
| 49 | - Proxy, | ||
| 50 | 49 | ReflectGet, | |
| 51 | 50 | ReflectSet, | |
| 52 | 51 | SymbolToStringTag, | |
@@ -108,8 +107,10 @@ const deprecationHandler = { | |||
| 108 | 107 | ||
| 109 | 108 | get(target, key, receiver) { | |
| 110 | 109 | const val = ReflectGet(target, key, receiver); | |
| 111 | - if (val != null && typeof val === 'object') | ||
| 110 | + if (val != null && typeof val === 'object') { | ||
| 111 | + // eslint-disable-next-line node-core/prefer-primordials | ||
| 112 | 112 | return new Proxy(val, deprecationHandler); | |
| 113 | + } | ||
| 113 | 114 | return val; | |
| 114 | 115 | }, | |
| 115 | 116 | ||
@@ -119,6 +120,7 @@ const deprecationHandler = { | |||
| 119 | 120 | } | |
| 120 | 121 | }; | |
| 121 | 122 | ||
| 123 | + // eslint-disable-next-line node-core/prefer-primordials | ||
| 122 | 124 | let processConfig = new Proxy( | |
| 123 | 125 | JSONParse(nativeModule.config), | |
| 124 | 126 | deprecationHandler); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,7 +111,7 @@ assert( | |||
| 111 | 111 | `timingSafeEqual should not leak information from its execution time (t=${t})` | |
| 112 | 112 | ); | |
| 113 | 113 | ||
| 114 | - // As a sanity check to make sure the statistical tests are working, run the | ||
| 114 | + // As a coherence check to make sure the statistical tests are working, run the | ||
| 115 | 115 | // same benchmarks again, this time with an unsafe comparison function. In this | |
| 116 | 116 | // case the t-value should be above the threshold. | |
| 117 | 117 | const unsafeCompare = (bufA, bufB) => bufA.equals(bufB); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments