prepack
Version:
Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.
16 lines (12 loc) • 469 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (ast, strictCode, env, realm) {
let exprRef = env.evaluate(ast.argument, strictCode);
let exprValue = _singletons.Environment.GetValue(realm, exprRef);
throw new _completions.ThrowCompletion(exprValue, ast.loc);
};
var _completions = require("../completions.js");
var _singletons = require("../singletons.js");
//# sourceMappingURL=ThrowStatement.js.map