Commit Graph

29 Commits

Author SHA1 Message Date
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
1613734325 Simplify native_fn 2023-05-26 16:13:23 +10:00
Andrew Morris
67ba0d9a03 Reduce explicit Val::Static() 2023-05-26 14:25:20 +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
ea42e94d5d to_val refactor, remove error macros 2023-05-26 11:54:43 +10:00
Andrew Morris
e54abc981f Make native functions const aware 2023-04-04 00:13:04 +10:00
Andrew Morris
f75b0c7152 Convert most vm panics into exceptions 2023-03-21 13:45:22 +11:00
Andrew Morris
a59b577cd3 Make NativeFunction use exceptions (panics not converted though) 2023-03-21 12:07:04 +11:00
Andrew Morris
751bf7a30d substring, toLowerCase, toString, toUpperCase, trim, trimEnd, trimStart, valueOf 2023-03-16 23:41:45 +11:00
Andrew Morris
2a489b3264 startsWith 2023-03-15 13:05:29 +11:00
Andrew Morris
efb21c777a split 2023-03-15 11:39:28 +11:00
Andrew Morris
48314c692d slice (string) 2023-03-15 09:21:58 +11:00
Andrew Morris
a9e52e564f repeat 2023-03-14 11:49:58 +11:00
Andrew Morris
f2edd6f866 padEnd, padStart 2023-03-14 09:40:21 +11:00
Andrew Morris
32a2c45115 Add todos for localeCompare, match, matchAll 2023-03-13 21:26:41 +11:00
Andrew Morris
f0d9c996e9 lastIndexOf 2023-03-13 21:18:58 +11:00
Andrew Morris
3f9a52a461 indexOf (string) 2023-03-13 20:36:08 +11:00
Andrew Morris
c3c49f43ee includes 2023-03-13 20:13:37 +11:00
Andrew Morris
4de8f51495 Move comment 2023-03-13 14:28:34 +11:00
Andrew Morris
253b06141c fromCodePoint 2023-03-13 14:25:55 +11:00
Andrew Morris
11e77f36bd endsWith 2023-03-13 14:02:35 +11:00
Andrew Morris
22eb55a915 concat (string) 2023-03-13 13:50:27 +11:00
Andrew Morris
fe730a613a Don't support charAt, charCodeAt 2023-03-13 13:35:07 +11:00
Andrew Morris
d33d93bd34 Improve string indexing, codePointAt 2023-03-13 12:52:33 +11:00
Andrew Morris
b6045b24c1 Move op_sub_string into string_methods 2023-03-13 11:05:07 +11:00
Andrew Morris
cd20dab817 charCodeAt 2023-03-13 10:46:59 +11:00
Andrew Morris
d33861a021 charAt 🫣 2023-03-12 21:30:09 +11:00
Andrew Morris
560124898b String.prototype.at (and autoformatting) 2023-03-12 21:08:45 +11:00