UNPKG

834 BJavaScriptView Raw
1"use strict";
2/* --------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All rights reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 * ------------------------------------------------------------------------------------------ */
6Object.defineProperty(exports, "__esModule", { value: true });
7let _ral;
8function RAL() {
9 if (_ral === undefined) {
10 throw new Error(`No runtime abstraction layer installed`);
11 }
12 return _ral;
13}
14(function (RAL) {
15 function install(ral) {
16 if (ral === undefined) {
17 throw new Error(`No runtime abstraction layer provided`);
18 }
19 _ral = ral;
20 }
21 RAL.install = install;
22})(RAL || (RAL = {}));
23exports.default = RAL;