From 4481602fc997f1b2200cfb04281366db78783851 Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Mon, 6 Jan 2020 03:39:26 +0100 Subject: [PATCH] lib: replace Int32Array global with primordials PR-URL: https://github.com/nodejs/node/pull/35397 Reviewed-By: Luigi Pinca Reviewed-By: Jiawen Geng Reviewed-By: Pranshu Srivastava Reviewed-By: Rich Trott Reviewed-By: Anto Aravinth Reviewed-By: Ujjwal Sharma --- lib/.eslintrc.yaml | 2 ++ lib/internal/util/inspect.js | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index afa71051799947..02d160d09386c9 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -27,6 +27,8 @@ rules: message: "Use `const { Float64Array } = primordials;` instead of the global." - name: Int16Array message: "Use `const { Int16Array } = primordials;` instead of the global." + - name: Int32Array + message: "Use `const { Int32Array } = primordials;` instead of the global." - name: JSON message: "Use `const { JSON } = primordials;` instead of the global." - name: Map diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 4b1ffa68891f95..a90e0e12112d03 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -16,6 +16,7 @@ const { FunctionPrototypeCall, FunctionPrototypeToString, Int16Array, + Int32Array, JSONStringify, Map, MapPrototype,