INNER CODE UNIT · JavaScript

evaluateFile

gnh1201/welsonjs · app.js:441

function evaluateFile(filename, ignoreUnsafeEval) {
    try {
        var evaluate = eval;
        if (!testEvaluator(evaluate) && !ignoreUnsafeEval) {
            throw new Error("Unsafe eval is not allowed. Please set ALLOW_UNSAFE_EVAL to true.");
        }
        return evaluate(require._load(filename));
    } catch (e) {
        console.error(e.message);
    }
}

/**
 * 
 * @param {string} filename The file name.
 */
function __evalFile__(filename) {
    return evaluateFile(filename, true);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…