// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. export class EnvImpl { constructor() { this.wasm = {}; this.webgl = {}; this.logLevelInternal = 'warning'; } // TODO standadize the getter and setter convention in env for other fields. set logLevel(value) { if (value === undefined) { return; } if (typeof value !== 'string' || ['verbose', 'info', 'warning', 'error', 'fatal'].indexOf(value) === -1) { throw new Error(`Unsupported logging level: ${value}`); } this.logLevelInternal = value; } get logLevel() { return this.logLevelInternal; } } //# sourceMappingURL=env-impl.js.map