-
-
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.
forced replacement of
Array#{ reduce, reduceRight }
in Chrome 80-82, …
- Loading branch information
Showing
9 changed files
with
27 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var classof = require('../internals/classof-raw'); | ||
var global = require('../internals/global'); | ||
|
||
module.exports = classof(global.process) == 'process'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
var $ = require('../internals/export'); | ||
var global = require('../internals/global'); | ||
var microtask = require('../internals/microtask'); | ||
var classof = require('../internals/classof-raw'); | ||
var IS_NODE = require('../internals/engine-is-node'); | ||
|
||
var process = global.process; | ||
var isNode = classof(process) == 'process'; | ||
|
||
// `queueMicrotask` method | ||
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask | ||
$({ global: true, enumerable: true, noTargetGet: true }, { | ||
queueMicrotask: function queueMicrotask(fn) { | ||
var domain = isNode && process.domain; | ||
var domain = IS_NODE && process.domain; | ||
microtask(domain ? domain.bind(fn) : fn); | ||
} | ||
}); |