Commit Graph

713 Commits

Author SHA1 Message Date
Andrew Morris
87dfda4855 Compile for-of using iteration instead of indexing 2023-05-29 16:07:31 +10:00
Andrew Morris
b949027501 Enable defining Symbol.iterator on classes 2023-05-29 15:38:22 +10:00
Andrew Morris
79b8523758 Add $SymbolIterator 2023-05-29 14:52:29 +10:00
Andrew Morris
702506d315 Simplify builtins 2023-05-29 14:46:24 +10:00
Andrew Morris
3d6c8fda2d Use NotNullish 2023-05-29 14:01:52 +10:00
Andrew Morris
64caac9254 Implement next, unpack_iter_res, fix iteration.vsm 2023-05-29 13:59:11 +10:00
Andrew Morris
161ed1c6de Add next and unpack_iter_res instructions (unimplemented) 2023-05-29 13:19:04 +10:00
Andrew Morris
8f8d840b71 Test manual array iteration 2023-05-29 12:53:10 +10:00
Andrew Morris
e7d008e3c9 Implement ArrayIterator.next 2023-05-29 12:45:38 +10:00
Andrew Morris
4cfcb00e10 custom -> dynamic 2023-05-29 11:09:59 +10:00
Andrew Morris
e40ea540e2 Implement Array.values 2023-05-29 10:36:36 +10:00
Andrew Morris
995c29cea5 ArrayIterator 2023-05-29 09:34:12 +10:00
Andrew Morris
cbc6e1f1da IterationResult, remove as_object_data 2023-05-29 09:12:29 +10:00
Andrew Morris
702727e1ec Import with file extensions 2023-05-27 09:39:24 +10:00
Andrew Morris
2acd602814 Fix constraint 2023-05-26 18:30:08 +10:00
Andrew Morris
3b2be89880 Remove next stubs 2023-05-26 18:03:03 +10:00
Andrew Morris
ac868be23c Replace VsPointer with cached decoding 2023-05-26 17:50:35 +10:00
Andrew Morris
4fb30d68be Replace range_error macro 2023-05-26 16:18:51 +10:00
Andrew Morris
1613734325 Simplify native_fn 2023-05-26 16:13:23 +10:00
Andrew Morris
d214e27dc8 BuiltinObject refactor 2023-05-26 15:23:58 +10:00
Andrew Morris
67ba0d9a03 Reduce explicit Val::Static() 2023-05-26 14:25:20 +10:00
Andrew Morris
e0b66ca93f Simplify to_primitive 2023-05-26 14:03:05 +10:00
Andrew Morris
90e8410257 Remove unused code 2023-05-26 13:57:10 +10:00
Andrew Morris
4814329eca Implement to_val_string on Val and avoid conversion when already string 2023-05-26 13:53:27 +10:00
Andrew Morris
bc89575eae Replace val_to_string with to_string (via fmt::Display) 2023-05-26 13:17:31 +10:00
Andrew Morris
3cfe1a6527 Use .pretty() instead of defining Display as pretty version 2023-05-26 12:21:02 +10:00
Andrew Morris
ea42e94d5d to_val refactor, remove error macros 2023-05-26 11:54:43 +10:00
Andrew Morris
80cd4deac8 Fix missing symbol_map 2023-05-25 15:36:50 +10:00
Andrew Morris
35c9699f2b Add stubs for ValTrait.next 2023-05-25 15:19:33 +10:00
Andrew Morris
a20f71a440 Add iteration assembly concept 2023-05-25 15:19:05 +10:00
Andrew Morris
205f5efa02 Add Symbol builtin 2023-05-25 13:45:38 +10:00
Andrew Morris
706fb78442 Add symbols 2023-05-25 13:15:15 +10:00
Andrew Morris
d885873844 Restore compile, passing args, remove step limit from playground 2023-05-25 08:35:16 +10:00
Andrew Morris
8f3263fdea Linting fixes 2023-05-24 17:08:22 +10:00
Andrew Morris
033ffb3dac Disable prefer-const in ValueScript, ignore external files, use double quote 2023-05-24 16:13:48 +10:00
Andrew Morris
ceb95b97c8 Remove console.log 2023-05-24 16:04:58 +10:00
Andrew Morris
f0ce1743e7 Integrate step limit into run() instead of separate method 2023-05-24 15:53:47 +10:00
Andrew Morris
66cfd09f03 Fix eslint+prettier 2023-05-24 15:24:28 +10:00
Andrew Morris
cb7af7c8a3 Ignore type-only imports 2023-04-15 17:38:26 +09:00
Andrew Morris
2b5b7d17a8 Add failing test 2023-04-15 17:34:36 +09:00
Andrew Morris
f0685828de Allow leaving out whitespace 2023-04-15 17:18:32 +09:00
Andrew Morris
0785fe0c5e Add args param 2023-04-15 16:45:40 +09:00
Andrew Morris
e450039300 Use fixed run limit 2023-04-14 23:59:26 +09:00
Andrew Morris
316a979a11 Add run_with_limit 2023-04-14 23:56:02 +09:00
Andrew Morris
5281f566c3 Remove compile 2023-04-14 23:20:44 +09:00
Andrew Morris
71d1e4611b Updated implemented list 2023-04-05 12:26:45 +10:00
Andrew Morris
23bd77f86c Adjust copy 2023-04-05 12:22:55 +10:00
Andrew Morris
4d853e1078 Add const.ts to tutorial 2023-04-05 11:43:19 +10:00
Andrew Morris
c9b0991907 Use this_subcall and avoid require_mutable_this when packing up those calls 2023-04-05 10:55:17 +10:00
Andrew Morris
0ee1f473ce this_subcall 2023-04-05 10:31:05 +10:00