-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename
internals/global
-> internals/global-this
- Loading branch information
Showing
102 changed files
with
284 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/core-js-pure/override/internals/get-built-in-prototype-method.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
'use strict'; | ||
var global = require('../internals/global'); | ||
var globalThis = require('../internals/global-this'); | ||
var path = require('../internals/path'); | ||
|
||
module.exports = function (CONSTRUCTOR, METHOD) { | ||
var Namespace = path[CONSTRUCTOR + 'Prototype']; | ||
var pureMethod = Namespace && Namespace[METHOD]; | ||
if (pureMethod) return pureMethod; | ||
var NativeConstructor = global[CONSTRUCTOR]; | ||
var NativeConstructor = globalThis[CONSTRUCTOR]; | ||
var NativePrototype = NativeConstructor && NativeConstructor.prototype; | ||
return NativePrototype && NativePrototype[METHOD]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
'use strict'; | ||
var path = require('../internals/path'); | ||
var global = require('../internals/global'); | ||
var globalThis = require('../internals/global-this'); | ||
var isCallable = require('../internals/is-callable'); | ||
|
||
var aFunction = function (variable) { | ||
return isCallable(variable) ? variable : undefined; | ||
}; | ||
|
||
module.exports = function (namespace, method) { | ||
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) | ||
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method]; | ||
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis[namespace]) | ||
: path[namespace] && path[namespace][method] || globalThis[namespace] && globalThis[namespace][method]; | ||
}; |
4 changes: 2 additions & 2 deletions
4
packages/core-js-pure/override/modules/web.dom-collections.iterator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
'use strict'; | ||
require('../modules/es.array.iterator'); | ||
var DOMIterables = require('../internals/dom-iterables'); | ||
var global = require('../internals/global'); | ||
var globalThis = require('../internals/global-this'); | ||
var setToStringTag = require('../internals/set-to-string-tag'); | ||
var Iterators = require('../internals/iterators'); | ||
|
||
for (var COLLECTION_NAME in DOMIterables) { | ||
setToStringTag(global[COLLECTION_NAME], COLLECTION_NAME); | ||
setToStringTag(globalThis[COLLECTION_NAME], COLLECTION_NAME); | ||
Iterators[COLLECTION_NAME] = Iterators.Array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var global = require('../internals/global'); | ||
var globalThis = require('../internals/global-this'); | ||
|
||
// `self` getter | ||
// https://html.spec.whatwg.org/multipage/window-object.html#dom-self | ||
$({ global: true, forced: global.self !== global }, { | ||
self: global | ||
$({ global: true, forced: globalThis.self !== globalThis }, { | ||
self: globalThis | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
'use strict'; | ||
require('../modules/es.global-this'); | ||
|
||
module.exports = require('../internals/global'); | ||
module.exports = require('../internals/global-this'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.