Reintroduce builtin decorator so these can appear anywhere in stdlib again

Avoids wrapping an undocumented function within 'memory.size' for example.
This commit is contained in:
dcodeIO
2018-07-19 02:10:04 +02:00
parent 96411c7398
commit 26e46f6f86
80 changed files with 6889 additions and 7157 deletions

View File

@ -11,5 +11,5 @@ var a_ref: A | null = changetype<A>(24);
var b_ref: B = changetype<B>(32);
var i: i32 = 0;
__gc_iterate_roots((ref: usize): void => { assert(<u32>ref == ++i << 3); });
gc.iterateRoots((ref: usize): void => { assert(<u32>ref == ++i << 3); });
assert(i == 4);