diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/es/map-bench.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/es/map-bench.js b/benchmark/es/map-bench.js index 7e5e8824bf..c81cf57e5d 100644 --- a/benchmark/es/map-bench.js +++ b/benchmark/es/map-bench.js @@ -25,7 +25,7 @@ function runObject(n) { } function runNullProtoObject(n) { - const m = Object.create(null); + const m = { __proto__: null }; bench.start(); for (let i = 0; i < n; i++) { m[`i${i}`] = i; @@ -51,7 +51,7 @@ function runNullProtoLiteralObject(n) { } function StorageObject() {} -StorageObject.prototype = Object.create(null); +StorageObject.prototype = { __proto__: null }; function runStorageObject(n) { const m = new StorageObject(); |