UNPKG

452 BJavaScriptView Raw
1import { Emitter } from "../util/Emitter.js";
2export class BaseContext extends Emitter {
3 constructor() {
4 super(...arguments);
5 this.isOffline = false;
6 }
7 /*
8 * This is a placeholder so that JSON.stringify does not throw an error
9 * This matches what JSON.stringify(audioContext) returns on a native
10 * audioContext instance.
11 */
12 toJSON() {
13 return {};
14 }
15}
16//# sourceMappingURL=BaseContext.js.map
\No newline at end of file