diff --git a/NOTICE b/NOTICE index 2a65be1bbd..2d41975541 100644 --- a/NOTICE +++ b/NOTICE @@ -22,6 +22,7 @@ under the licensing terms detailed in LICENSE: * Duncan Uszkay * Surma * Julien Letellier +* Guido Zuidhof Portions of this software are derived from third-party works licensed under the following terms: diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index b2161353d3..4df3ba5e2d 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -40,7 +40,7 @@ declare type anyref = object; // Compiler hints -/** Compiler target. 0 = JS, 1 = WASM32, 2 = WASM64. */ +/** Compiler target. 0 = WASM32, 1 = WASM64, 2 = JS. */ declare const ASC_TARGET: i32; /** Provided noAssert option. */ declare const ASC_NO_ASSERT: bool; diff --git a/std/assembly/shared/target.ts b/std/assembly/shared/target.ts index 8aecd4705e..d6d0a3a086 100644 --- a/std/assembly/shared/target.ts +++ b/std/assembly/shared/target.ts @@ -3,9 +3,9 @@ /** Compilation target. */ export enum Target { /** WebAssembly with 32-bit pointers. */ - WASM32, + WASM32 = 0, /** WebAssembly with 64-bit pointers. Experimental and not supported by any runtime yet. */ - WASM64, + WASM64 = 1, /** Portable. */ - JS + JS = 2 } diff --git a/std/portable/index.d.ts b/std/portable/index.d.ts index bc4587db3d..a8fe3d3f53 100644 --- a/std/portable/index.d.ts +++ b/std/portable/index.d.ts @@ -33,7 +33,7 @@ declare type valueof = T[0]; // Compiler hints -/** Compiler target. 0 = JS, 1 = WASM32, 2 = WASM64. */ +/** Compiler target. 0 = WASM32, 1 = WASM64, 2 = JS. */ declare const ASC_TARGET: i32; /** Provided noAssert option. */ declare const ASC_NO_ASSERT: bool;