Skip to content

Commit 5a6eee1

Browse files
committed
[js-api] Use [AllowResizable] AllowSharedBufferSource for bytecode
Fixes #1907
1 parent 62f535c commit 5a6eee1

File tree

2 files changed

+6505
-4
lines changed

2 files changed

+6505
-4
lines changed

document/js-api/index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,11 @@ dictionary WebAssemblyCompileOptions {
372372

373373
[Exposed=*]
374374
namespace WebAssembly {
375-
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
376-
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
375+
boolean validate([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
376+
Promise<Module> compile([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
377377

378378
Promise<WebAssemblyInstantiatedSource> instantiate(
379-
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
379+
[AllowResizable] AllowSharedBufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
380380

381381
Promise<Instance> instantiate(
382382
Module moduleObject, optional object importObject);
@@ -704,7 +704,7 @@ dictionary ModuleImportDescriptor {
704704

705705
[LegacyNamespace=WebAssembly, Exposed=*]
706706
interface Module {
707-
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
707+
constructor([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
708708
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
709709
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
710710
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);

0 commit comments

Comments
 (0)