"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.runScript = void 0;
/* eslint-disable no-console */
const vm_1 = __importDefault(require("vm"));
function runScript(code, context) {
    try {
        return vm_1.default.runInNewContext(code, context);
    }
    catch (error) {
        console.error('运行脚本错误');
    }
}
exports.runScript = runScript;
