BufferSource.webidl (589B)
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * The origin of this IDL file is 7 * https://webidl.spec.whatwg.org/ 8 */ 9 10 typedef (ArrayBufferView or ArrayBuffer) BufferSource; 11 12 // Should be replaced with `ArrayBuffer or SharedArrayBuffer`. See bug 1838639. 13 typedef ([AllowShared] ArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource;