Files
Mariusz Nowak b65a9f5010 feat: ensure global resolves in strict mode
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
2019-04-30 16:41:23 +02:00

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);
};