Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/console/constructor.js')
-rw-r--r--lib/internal/console/constructor.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/console/constructor.js b/lib/internal/console/constructor.js
index c3716a8acda..7881dc1c133 100644
--- a/lib/internal/console/constructor.js
+++ b/lib/internal/console/constructor.js
@@ -15,6 +15,7 @@ const {
MathFloor,
Number,
NumberPrototypeToFixed,
+ ObjectCreate,
ObjectDefineProperties,
ObjectDefineProperty,
ObjectKeys,
@@ -555,7 +556,7 @@ const consoleMethods = {
return final([iterKey, valuesKey], [getIndexArray(length), values]);
}
- const map = {};
+ const map = ObjectCreate(null);
let hasPrimitives = false;
const valuesKeyArray = [];
const indexKeyArray = ObjectKeys(tabularData);