@@ -138,6 +138,7 @@ declare module "assemblyscript/src/common" {
138138 const ASC_TABLE_BASE = "ASC_TABLE_BASE" ;
139139 const ASC_OPTIMIZE_LEVEL = "ASC_OPTIMIZE_LEVEL" ;
140140 const ASC_SHRINK_LEVEL = "ASC_SHRINK_LEVEL" ;
141+ const ASC_WASI = "ASC_WASI" ;
141142 const ASC_FEATURE_SIGN_EXTENSION = "ASC_FEATURE_SIGN_EXTENSION" ;
142143 const ASC_FEATURE_MUTABLE_GLOBALS = "ASC_FEATURE_MUTABLE_GLOBALS" ;
143144 const ASC_FEATURE_NONTRAPPING_F2I = "ASC_FEATURE_NONTRAPPING_F2I" ;
@@ -172,6 +173,8 @@ declare module "assemblyscript/src/common" {
172173 const ArrayBuffer = "ArrayBuffer" ;
173174 const Math = "Math" ;
174175 const Mathf = "Mathf" ;
176+ const NativeMath = "NativeMath" ;
177+ const NativeMathf = "NativeMathf" ;
175178 const Int8Array = "Int8Array" ;
176179 const Int16Array = "Int16Array" ;
177180 const Int32Array = "Int32Array" ;
@@ -185,6 +188,8 @@ declare module "assemblyscript/src/common" {
185188 const Float64Array = "Float64Array" ;
186189 const Error = "Error" ;
187190 const abort = "abort" ;
191+ const trace = "trace" ;
192+ const seed = "seed" ;
188193 const pow = "pow" ;
189194 const mod = "mod" ;
190195 const alloc = "__alloc" ;
@@ -3285,6 +3290,8 @@ declare module "assemblyscript/src/program" {
32853290 nextSignatureId : number ;
32863291 /** An indicator if the program has been initialized. */
32873292 initialized : boolean ;
3293+ /** Tests whether this is a WASI program. */
3294+ get isWasi ( ) : boolean ;
32883295 /** Constructs a new program, optionally inheriting parser diagnostics. */
32893296 constructor (
32903297 /** Compiler options. */
@@ -4558,6 +4565,9 @@ declare module "assemblyscript/src/builtins" {
45584565 const started = "~started" ;
45594566 const argumentsLength = "~argumentsLength" ;
45604567 const setArgumentsLength = "~setArgumentsLength" ;
4568+ const abort = "~lib/builtins/abort" ;
4569+ const trace = "~lib/builtins/trace" ;
4570+ const seed = "~lib/builtins/seed" ;
45614571 const isInteger = "~lib/builtins/isInteger" ;
45624572 const isFloat = "~lib/builtins/isFloat" ;
45634573 const isBoolean = "~lib/builtins/isBoolean" ;
@@ -4996,6 +5006,9 @@ declare module "assemblyscript/src/builtins" {
49965006 const Uint64Array = "~lib/typedarray/Uint64Array" ;
49975007 const Float32Array = "~lib/typedarray/Float32Array" ;
49985008 const Float64Array = "~lib/typedarray/Float64Array" ;
5009+ const wasiAbort = "~lib/wasi/index/abort" ;
5010+ const wasiTrace = "~lib/wasi/index/trace" ;
5011+ const wasiSeed = "~lib/wasi/index/seed" ;
49995012 }
50005013 /** Builtin compilation context. */
50015014 export class BuiltinContext {
0 commit comments