UNPKG

prepack

Version:

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

29 lines (24 loc) 740 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DebuggerError = void 0; /** * 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. */ /* strict */ // More error types will be added as needed class DebuggerError extends Error { constructor(errorType, message) { super(`${errorType}: ${message}`); this.errorType = errorType; this.message = message; } } exports.DebuggerError = DebuggerError; //# sourceMappingURL=DebuggerError.js.map