Commit Graph

576 Commits

Author SHA1 Message Date
Andrew Morris
7d58ba3c34 Use self.frame instead of top of stack 2022-05-27 13:18:01 +10:00
Andrew Morris
cf4e95456e Add unimplemented new instruction 2022-05-27 12:46:48 +10:00
Andrew Morris
d978dd8004 Add placeholder names at top-level to ignore list 2022-05-27 12:05:55 +10:00
Andrew Morris
00729d0334 Use trunc instead of signum+abs+floor 2022-05-22 21:43:15 +10:00
Andrew Morris
d1cfbd9dfe Add math functions 2022-05-22 21:37:19 +10:00
Andrew Morris
1075f23906 Add stubs for math functions 2022-05-22 21:14:40 +10:00
Andrew Morris
980466b9d7 Add more math constants 2022-05-22 20:59:32 +10:00
Andrew Morris
9a1f0cc931 Add builtins, Math.E 2022-05-22 20:56:06 +10:00
Andrew Morris
0cb891b8c4 Use direct impl instead of trait 2022-05-22 19:47:38 +10:00
Andrew Morris
e65b366f8e Remove completed TODO 2022-05-22 16:22:37 +10:00
Andrew Morris
141cf92bb4 Enable method calls on non-lvalues 2022-05-22 16:18:11 +10:00
Andrew Morris
c7c9913444 Array.prototype.splice 2022-05-22 16:00:57 +10:00
Andrew Morris
921f13452a toString 2022-05-22 12:34:12 +10:00
Andrew Morris
2cc7ea317d sort (without custom comparison fn) 2022-05-22 12:29:21 +10:00
Andrew Morris
691a3258e2 slice 2022-05-22 12:15:17 +10:00
Andrew Morris
f48b7abb5f reverse 2022-05-22 12:03:02 +10:00
Andrew Morris
d2873abda9 lastIndexOf 2022-05-22 11:51:22 +10:00
Andrew Morris
d40e9e3733 indexOf, join 2022-05-22 11:49:08 +10:00
Andrew Morris
a5d0e2a46f Fix undefined elements in array toString 2022-05-22 11:39:16 +10:00
Andrew Morris
8a97ad7c38 Add stubs for remaining array methods 2022-05-22 11:26:44 +10:00
Andrew Morris
cc6f7f4eb6 Alphabetize array methods 2022-05-21 18:09:53 +10:00
Andrew Morris
8706929c25 Array.prototype.flat (without depth param) 2022-05-21 18:07:37 +10:00
Andrew Morris
b7d5d66a7c Array.prototype.fill 2022-05-21 17:53:44 +10:00
Andrew Morris
5056dc89f5 Fix index clamping for copyWithin 2022-05-21 17:47:32 +10:00
Andrew Morris
3dc2eb7d8b Fix copyWithin 2022-05-21 17:29:54 +10:00
Andrew Morris
55e75669f7 wip Array.prototype.copyWithin 2022-05-21 15:57:18 +10:00
Andrew Morris
26f0180ede Array.prototype.concat 2022-05-21 14:54:42 +10:00
Andrew Morris
778c4204c4 Add tsconfig to improve intellisense 2022-05-21 14:53:21 +10:00
Andrew Morris
5880318caf Array.prototype.at 2022-05-21 14:38:24 +10:00
Andrew Morris
55191fb43c Implement array's .length 2022-05-21 14:21:01 +10:00
Andrew Morris
fcd12b9b96 Add class-like examples 2022-05-21 14:14:10 +10:00
Andrew Morris
fe7fb346e0 Ignore type aliases 2022-05-21 14:13:07 +10:00
Andrew Morris
474e1047b2 Fix target access on method calls 2022-05-21 14:12:59 +10:00
Andrew Morris
587d6da4e8 Use 16-bit pointers in the bytecode 2022-05-21 14:12:36 +10:00
Andrew Morris
99db7d6c0a Fix return and undefined bugs in capture finder 2022-05-21 14:11:56 +10:00
Andrew Morris
1d3d341183 Fix this parameter for ordinary functions 2022-05-20 17:03:01 +10:00
Andrew Morris
01470f484f unshift, pop, shift 2022-05-20 17:02:48 +10:00
Andrew Morris
007618f417 Array.prototype.includes 2022-05-20 16:48:19 +10:00
Andrew Morris
e663f1c077 Improve debug printing 2022-05-20 16:19:30 +10:00
Andrew Morris
00b7c56053 Compile method calls 2022-05-20 15:19:36 +10:00
Andrew Morris
5f3875ff4d Implement subcall instruction 2022-05-20 14:46:07 +10:00
Andrew Morris
b756605d5d Implement .push (in theory 😅) 2022-05-20 11:54:43 +10:00
Andrew Morris
0a0c3e98d3 Add native_function 2022-05-20 11:28:38 +10:00
Andrew Morris
ca5ef43ee2 Add array prototype 2022-05-20 10:54:05 +10:00
Andrew Morris
b5989a8137 Add static system 2022-05-20 10:22:38 +10:00
Andrew Morris
6a3b62dec0 Introduce VsArray with object fallback 2022-05-20 10:06:48 +10:00
Andrew Morris
4a31e11811 Fallback to prototype when subscripting object 2022-05-20 09:39:48 +10:00
Andrew Morris
fcc8c55b38 Introduce VsObject 2022-05-20 09:32:07 +10:00
Andrew Morris
2a456145f1 Fix failing input 2022-05-20 08:54:19 +10:00
Andrew Morris
51a4f5bebe Add failing input 2022-05-20 08:44:01 +10:00