We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 7be1cf1 commit 90a57ddCopy full SHA for 90a57dd
packages/core-js/internals/add-to-unscopables.js
@@ -1,14 +1,14 @@
1
var wellKnownSymbol = require('../internals/well-known-symbol');
2
var create = require('../internals/object-create');
3
-var definePropertyModule = require('../internals/object-define-property');
+var defineProperty = require('../internals/object-define-property').f;
4
5
var UNSCOPABLES = wellKnownSymbol('unscopables');
6
var ArrayPrototype = Array.prototype;
7
8
// Array.prototype[@@unscopables]
9
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
10
if (ArrayPrototype[UNSCOPABLES] == undefined) {
11
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
+ defineProperty(ArrayPrototype, UNSCOPABLES, {
12
configurable: true,
13
value: create(null)
14
});
0 commit comments