File tree 7 files changed +17
-17
lines changed
7 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ module.exports = {
69
69
// Quite common in scenarios where an iteration starts at `current = this`.
70
70
"@typescript-eslint/no-this-alias" : "off" ,
71
71
72
- // Disabled here, but enabled again for JavaScript files
72
+ // Disabled here, but enabled again for JavaScript files.
73
73
"no-unused-vars" : "off" ,
74
74
75
- // Disabled here, but enabled again for TypeScript files
75
+ // Disabled here, but enabled again for TypeScript files.
76
76
"@typescript-eslint/no-unused-vars" : "off"
77
77
} ,
78
78
overrides : [
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ declare type anyref = object;
40
40
41
41
// Compiler hints
42
42
43
- /** Compiler target. 0 = WASM32 , 1 = WASM64 , 2 = JS . */
43
+ /** Compiler target. 0 = JS , 1 = WASM32 , 2 = WASM64 . */
44
44
declare const ASC_TARGET : i32 ;
45
45
/** Provided noAssert option. */
46
46
declare const ASC_NO_ASSERT : bool ;
Original file line number Diff line number Diff line change 2
2
3
3
/** Compilation target. */
4
4
export enum Target {
5
+ /** Portable. */
6
+ JS = 0 ,
5
7
/** WebAssembly with 32-bit pointers. */
6
- WASM32 = 0 ,
8
+ WASM32 = 1 ,
7
9
/** WebAssembly with 64-bit pointers. Experimental and not supported by any runtime yet. */
8
- WASM64 = 1 ,
9
- /** Portable. */
10
- JS = 2
10
+ WASM64 = 2 ,
11
11
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ declare type valueof<T extends unknown[]> = T[0];
33
33
34
34
// Compiler hints
35
35
36
- /** Compiler target. 0 = WASM32 , 1 = WASM64 , 2 = JS . */
36
+ /** Compiler target. 0 = JS , 1 = WASM32 , 2 = WASM64 . */
37
37
declare const ASC_TARGET : i32 ;
38
38
/** Provided noAssert option. */
39
39
declare const ASC_NO_ASSERT : bool ;
Original file line number Diff line number Diff line change 2
2
3
3
var globalScope = typeof window !== "undefined" && window || typeof global !== "undefined" && global || self ;
4
4
5
- globalScope . ASC_TARGET = 2 ; // Target.JS
5
+ globalScope . ASC_TARGET = 0 ; // Target.JS
6
6
globalScope . ASC_NO_ASSERT = false ;
7
7
globalScope . ASC_MEMORY_BASE = 0 ;
8
8
globalScope . ASC_OPTIMIZE_LEVEL = 3 ;
Original file line number Diff line number Diff line change 2
2
(type $none_=>_none (func ))
3
3
(memory $0 0 )
4
4
(table $0 1 funcref )
5
- (global $~lib/ASC_TARGET i32 (i32.const 0 ))
5
+ (global $~lib/ASC_TARGET i32 (i32.const 1 ))
6
6
(global $~lib/ASC_NO_ASSERT i32 (i32.const 0 ))
7
7
(global $~lib/ASC_MEMORY_BASE i32 (i32.const 0 ))
8
8
(global $~lib/ASC_OPTIMIZE_LEVEL i32 (i32.const 0 ))
20
20
(export " memory" (memory $0 ))
21
21
(start $~start )
22
22
(func $start:asc-constants
23
- i32.const 0
23
+ i32.const 1
24
24
drop
25
25
i32.const 0
26
26
drop
Original file line number Diff line number Diff line change 2
2
(type $none_=>_none (func ))
3
3
(memory $0 0 )
4
4
(table $0 1 funcref )
5
- (global $~lib/shared/target/Target.WASM32 i32 (i32.const 0 ))
6
- (global $~lib/shared/target/Target.WASM64 i32 (i32.const 1 ))
7
- (global $~lib/shared/target/Target.JS i32 (i32.const 2 ))
8
- (global $~lib/ASC_TARGET i32 (i32.const 0 ))
5
+ (global $~lib/shared/target/Target.JS i32 (i32.const 0 ))
6
+ (global $~lib/shared/target/Target.WASM32 i32 (i32.const 1 ))
7
+ (global $~lib/shared/target/Target.WASM64 i32 (i32.const 2 ))
8
+ (global $~lib/ASC_TARGET i32 (i32.const 1 ))
9
9
(global $wasi/snapshot_preview1/sig (mut i32 ) (i32.const 1 ))
10
10
(export " memory" (memory $0 ))
11
11
(start $~start )
118
118
i32.const 0
119
119
i32.eq
120
120
drop
121
- i32.const 0
121
+ i32.const 1
122
122
global.get $~lib/shared/target/Target.WASM32
123
123
i32.eq
124
124
drop
182
182
i32.const 0
183
183
i32.eq
184
184
drop
185
- i32.const 0
185
+ i32.const 1
186
186
global.get $~lib/shared/target/Target.WASM32
187
187
i32.eq
188
188
drop
You can’t perform that action at this time.
0 commit comments