From c1afbe1c04b6082cf01b68c2e67a533e8d0b79a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sj=C3=B8rup?= Date: Fri, 25 Oct 2024 16:49:33 +0200 Subject: [PATCH 1/3] add multi_memory to WasmFeatures in index.d.ts --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index 7ccd295..ede34ac 100644 --- a/index.d.ts +++ b/index.d.ts @@ -34,6 +34,8 @@ interface WasmFeatures { // see: https://github.com/WebAssembly/wabt/blob/main/s extended_const?: boolean; /** Relaxed SIMD. */ relaxed_simd?: boolean; + /** Multi memory. */ + multi_memory?: boolean; } /** Options modifying the behavior of `readWasm`. */ From 76dd3c43c2776862c1223ffac5503c2a52c46437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sj=C3=B8rup?= Date: Sun, 8 Dec 2024 11:57:01 +0100 Subject: [PATCH 2/3] reorder to match wabt/src/wabt.post.js ordering --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index ede34ac..e1bf571 100644 --- a/index.d.ts +++ b/index.d.ts @@ -30,12 +30,12 @@ interface WasmFeatures { // see: https://github.com/WebAssembly/wabt/blob/main/s gc?: boolean; /** 64-bit memory */ memory64?: boolean; + /** Multi-memory. */ + multi_memory?: boolean; /** Extended constant expressions. */ extended_const?: boolean; /** Relaxed SIMD. */ relaxed_simd?: boolean; - /** Multi memory. */ - multi_memory?: boolean; } /** Options modifying the behavior of `readWasm`. */ From 1e712080bbe58530805c25583ab982ccff0d682e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sj=C3=B8rup?= Date: Sun, 8 Dec 2024 12:00:05 +0100 Subject: [PATCH 3/3] update link --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index e1bf571..d4e20da 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ /** Post-MVP WebAssembly features to legalize. */ -interface WasmFeatures { // see: https://github.com/WebAssembly/wabt/blob/main/src/feature.def#L25-L35 +interface WasmFeatures { // see: https://github.com/WebAssembly/wabt/blob/main/include/wabt/feature.def#L25 /** Experimental exception handling. */ exceptions?: boolean; /** Import/export mutable globals. */