Commit Graph

139 Commits

Author SHA1 Message Date
d7a971db24 scope.vars() 2025-11-08 08:40:15 -08:00
f439c25742 add TYPE opcode 2025-11-08 00:01:21 -08:00
47e227f50c don't need vm for simple toValue calls 2025-11-07 23:36:53 -08:00
15884ac239 add bitwise operators 2025-11-07 22:51:28 -08:00
bffb83a528 more robust isValue() check 2025-11-05 15:43:30 -08:00
bd1736b474 toValue is hungry 2025-11-05 15:20:55 -08:00
f4e24f427f gimme all of it 2025-11-05 15:17:54 -08:00
e7201e691c even more debug info 2025-11-05 15:16:41 -08:00
11b119a322 give more info on toValue() error 2025-11-05 15:11:24 -08:00
33ea94a247 shortcut 2025-11-05 14:17:48 -08:00
f1cc717711 pushScope accepts locals 2025-11-05 13:55:59 -08:00
54cd9ce8e8 add pushScope/popScope for Power Users 2025-11-05 13:49:19 -08:00
0f39e9401e fromValue can convert native functions now 2025-11-01 23:09:11 -07:00
676f53c66b aideas 2025-11-01 23:03:33 -07:00
fa021e3f18 better error message 2025-10-29 21:43:44 -07:00
4b2fd61554 SWAP opcode 2025-10-29 20:37:09 -07:00
c69b172c78 ADD: error checking 2025-10-29 16:03:26 -07:00
0b5d3e634c too chatty 2025-10-29 15:35:10 -07:00
ba8376e2c3 dicts, too 2025-10-29 15:28:34 -07:00
956fd576f8 ADD concats arrays too 2025-10-29 15:25:37 -07:00
9618dd6414 ADD now concats strings, too 2025-10-29 15:20:28 -07:00
b58f848a65 convert native exceptions to shrimp exceptions 2025-10-29 15:07:59 -07:00
3647159286 remove old imports 2025-10-29 14:57:28 -07:00
030eb74871 mark functions as raw=true to deal with Value directly 2025-10-29 13:10:05 -07:00
052f989e82 fix nested globals 2025-10-28 22:59:51 -07:00
Chris Wanstrath
e542070677 vm.set(), new VM(bytecode, globalVars) 2025-10-28 13:05:24 -07:00
97b6722a11 support roundtrip value conversions 2025-10-26 12:52:57 -07:00
d50b143c9d cough cough 2025-10-26 12:27:02 -07:00
e300946c48 throw real errors 2025-10-26 12:25:34 -07:00
bf6607d368 put builtin global functions into a higher scope 2025-10-26 08:53:51 -07:00
da61c1de50 isValue() 2025-10-26 08:24:58 -07:00
d359d6e27d even more 2025-10-25 20:34:30 -07:00
eb128ec831 share more 2025-10-25 20:27:38 -07:00
286d5ff943 slightly better error message 2025-10-25 20:07:10 -07:00
aa8ecb7cf6 VM constructor also accepts valueFunctions 2025-10-25 19:00:12 -07:00
bbdfcdb54a regexp is valid now 2025-10-25 15:53:07 -07:00
8d9510e9ae update docs 2025-10-25 10:12:36 -07:00
17d846b999 more repl support 2025-10-25 09:48:17 -07:00
1fb5effb0a add REPL support 2025-10-25 09:10:43 -07:00
937861e27b export OpCode 2025-10-25 08:22:50 -07:00
42c0e62597 show natives in debugger/repl 2025-10-25 07:56:06 -07:00
46829df28b TypeScriptFunction, more exports 2025-10-25 07:55:58 -07:00
e1e7cdf1ef vm.call() native functions too 2025-10-24 16:25:55 -07:00
f79fea33c5 more native named arg tests 2025-10-24 11:00:02 -07:00
797eb281cb vm.call(name, ...args) 2025-10-24 10:53:00 -07:00
91d3eb43e4 Call Reef closures inside native functions 2025-10-24 10:26:18 -07:00
eb4f103ba3 Merge pull request 'Varadic args are always last in javascript' (#3) from varadic-and-named into main
Reviewed-on: #3
2025-10-23 20:30:23 +00:00
995487f2d5 varadic args are always last in javascript 2025-10-23 11:15:02 -07:00
a885a59140 Merge pull request 'Make TRY_CALL work with native functions AND a debug helper' (#2) from TRY_CALL into main
Reviewed-on: #2
2025-10-21 01:53:39 +00:00
47f829fcad A 100% AI written debug function 2025-10-20 09:31:19 -07:00