Skip to content

Commit

Permalink
minor stylistic change
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 17, 2022
1 parent 7be1cf1 commit 90a57dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-js/internals/add-to-unscopables.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var wellKnownSymbol = require('../internals/well-known-symbol');
var create = require('../internals/object-create');
var definePropertyModule = require('../internals/object-define-property');
var defineProperty = require('../internals/object-define-property').f;

var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;

// Array.prototype[@@unscopables]
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] == undefined) {
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
defineProperty(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: create(null)
});
Expand Down

0 comments on commit 90a57dd

Please sign in to comment.