Commit Graph

735 Commits

Author SHA1 Message Date
Andrew Morris
1ee2bc30da Implement spreading for calls, news, and methods 2023-05-31 11:33:12 +10:00
Andrew Morris
383fcddfa1 Split out TargetAccessor 2023-05-31 10:03:22 +10:00
Andrew Morris
7a8b388c69 Allow passing non-inline arrays as parameters 2023-05-30 16:47:17 +10:00
Andrew Morris
61e947df04 Replace toArray with spreading 2023-05-30 15:35:48 +10:00
Andrew Morris
af6b90aed9 Fix spreadAndReturn 2023-05-30 15:35:00 +10:00
Andrew Morris
cd1ca27be8 Avoid trailing empty segment 2023-05-30 15:34:28 +10:00
Andrew Morris
ae729a3a29 Add failing test 2023-05-30 15:21:43 +10:00
Andrew Morris
4c20945c3a Enable spreading in array expressions 2023-05-30 15:09:07 +10:00
Andrew Morris
4f05f8feeb BinaryTreeIterator 2023-05-30 14:33:20 +10:00
Andrew Morris
4729d006a3 Handle iterators in CatStackFrame 2023-05-30 14:00:51 +10:00
Andrew Morris
c12a27a1ff Implement cat as stack frame 2023-05-30 12:28:08 +10:00
Andrew Morris
4164f44ece Cat instruction with limited implementation 2023-05-30 11:22:50 +10:00
Andrew Morris
98a7e8ea1f Move passing tests into passing dir 2023-05-30 10:46:33 +10:00
Andrew Morris
2a789486d6 Fix inc+dec for bigint 2023-05-30 10:43:12 +10:00
Andrew Morris
008de5cab1 Add spread concept code 2023-05-30 10:32:40 +10:00
Andrew Morris
2267226d6b Implement [Symbol.iterator]() for iterators 2023-05-30 09:49:19 +10:00
Andrew Morris
c79e40a1dd Add array.entries() 2023-05-30 09:34:05 +10:00
Andrew Morris
4570aac6e8 Add string iteration 2023-05-29 18:40:02 +10:00
Andrew Morris
e0690f58e0 Fix filename scrollbar covering code 2023-05-29 16:56:00 +10:00
Andrew Morris
15b9243b18 Fix importing .ts in playground 2023-05-29 16:39:36 +10:00
Andrew Morris
719c605875 Fix NotNullish import 2023-05-29 16:39:20 +10:00
Andrew Morris
21a0d182b2 Test custom iterator 2023-05-29 16:27:42 +10:00
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