Update app.js

This commit is contained in:
Namhyeon Go 2024-08-14 14:25:55 +09:00
parent 64e556f37a
commit eb05661e2b

9
app.js
View File

@ -216,9 +216,12 @@ if (typeof CreateObject === "undefined") {
/** /**
* @FN {string} The name of the file. * @FN {string} The name of the file.
*/ */
function __evalFile(FN) { function __evalFile__(FN) {
if (FN.substring(FN.length - 3) !== '.js') FN += ".js"; try {
return eval(require._load(FN)); return eval(require._load(FN));
} catch (e) {
console.error(e.message);
}
} }
/** /**
@ -647,7 +650,7 @@ if (!Date.prototype.toISOString) {
// JSON 2 // JSON 2
if (typeof JSON === "undefined") { if (typeof JSON === "undefined") {
__evalFile("app/assets/js/json2"); __evalFile__("app/assets/js/json2.js");
} }
// core-js (aka. babel-polyfill) // core-js (aka. babel-polyfill)