mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
// Loaded from https://dev.jspm.io/npm:set-immediate-shim@1.0.1/index.dew.js
|
|
|
|
|
|
var exports = {},
|
|
_dewExec = false;
|
|
export function dew() {
|
|
if (_dewExec) return exports;
|
|
_dewExec = true;
|
|
exports = typeof setImmediate === 'function' ? setImmediate : function setImmediate() {
|
|
var args = [].slice.apply(arguments);
|
|
args.splice(1, 0, 0);
|
|
setTimeout.apply(null, args);
|
|
};
|
|
return exports;
|
|
} |