prepack
Version:
Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.
33 lines (28 loc) • 951 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
var _index = require("../values/index.js");
var _invariant = _interopRequireDefault(require("../invariant.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
function _default(ast, strictCode, env, realm, labelSet) {
let r = env.evaluate({
type: "ForStatement",
init: null,
test: ast.test,
update: null,
body: ast.body
}, strictCode, labelSet);
(0, _invariant.default)(r instanceof _index.Value);
return r;
}
//# sourceMappingURL=WhileStatement.js.map