mirror of
https://github.com/hanzoai/es5-ext.git
synced 2026-09-24 16:58:43 +00:00
If CJS is bundled into ESM, then strict mode is forced. This patch ensures that global is resolved properly in such case Fixes #86 Thanks @mathiasbynens for hint on CSP safe global resolution
8 lines
165 B
JavaScript
8 lines
165 B
JavaScript
"use strict";
|
|
|
|
module.exports = function (t, a) {
|
|
a.ok(t && typeof t === "object");
|
|
a(typeof t.Array, "function");
|
|
a("__global__" in Object.prototype, false);
|
|
};
|