Progress and a tiny WASM binary parser

This commit is contained in:
dcodeIO
2018-04-03 23:56:48 +02:00
parent 06198a3723
commit 5823e35f37
58 changed files with 12075 additions and 3964 deletions

16
tests/compiler/closure.ts Normal file
View File

@ -0,0 +1,16 @@
// TODO
// export function outer(): () => () => i32 {
// var inner: i32 = 42; // should become a global right away
// return function a(): () => i32 {
// return function b(): i32 {
// return inner++;
// };
// };
// }
// var fnA = outer();
// var fnB = fnA();
// assert(fnB() == 42);
// assert(fnB() == 43);