UNPKG

prepack

Version:

Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.

37 lines (29 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require("./index.js"); var _invariant = require("../invariant.js"); var _invariant2 = _interopRequireDefault(_invariant); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } class PrimitiveValue extends _index.ConcreteValue { constructor(realm, intrinsicName) { (0, _invariant2.default)(realm, "realm required"); super(realm, intrinsicName); } throwIfNotConcretePrimitive() { return this; } toDisplayString() { (0, _invariant2.default)(false, "abstract method; please override"); } } exports.default = PrimitiveValue; /** * 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. */ //# sourceMappingURL=PrimitiveValue.js.map