sdfsdfs
This commit is contained in:
17
node_modules/pixi.js/lib/utils/browser/unsafeEvalSupported.mjs
generated
vendored
Normal file
17
node_modules/pixi.js/lib/utils/browser/unsafeEvalSupported.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
let unsafeEval;
|
||||
function unsafeEvalSupported() {
|
||||
if (typeof unsafeEval === "boolean") {
|
||||
return unsafeEval;
|
||||
}
|
||||
try {
|
||||
const func = new Function("param1", "param2", "param3", "return param1[param2] === param3;");
|
||||
unsafeEval = func({ a: "b" }, "a", "b") === true;
|
||||
} catch (e) {
|
||||
unsafeEval = false;
|
||||
}
|
||||
return unsafeEval;
|
||||
}
|
||||
|
||||
export { unsafeEvalSupported };
|
||||
//# sourceMappingURL=unsafeEvalSupported.mjs.map
|
Reference in New Issue
Block a user