From 1a0dfd4d201257ef9acb49831d8814bcc47a727c Mon Sep 17 00:00:00 2001 From: Marcel Laverdet Date: Tue, 2 May 2023 14:02:07 -0500 Subject: [PATCH] Lint and "future-proof" --- packages/core-js/internals/symbol-constructor-detection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core-js/internals/symbol-constructor-detection.js b/packages/core-js/internals/symbol-constructor-detection.js index 204cbd81af56..1a9cf0f8e4b3 100644 --- a/packages/core-js/internals/symbol-constructor-detection.js +++ b/packages/core-js/internals/symbol-constructor-detection.js @@ -1,7 +1,9 @@ /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = require('../internals/engine-v8-version'); var fails = require('../internals/fails'); -var $String = String; +var global = require('../internals/global'); + +var $String = global.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing module.exports = !!Object.getOwnPropertySymbols && !fails(function () {