kommander
58579fc70e
fix(codemode): match JS in built-in object details
...
Resolving functions are anonymous, Set.prototype.keys is values, built-in iterators report their kind (Array Iterator, Map Iterator, ...), AggregateError has no own message unless given one, and generator and async functions inherit from their own non-callable function prototypes.
2026-11-18 18:56:01 +01:00
kommander
2a932f1331
fix(codemode): convert functions, generators and iterators through ToPrimitive
...
Operators and built-in arguments now call their valueOf/toString like any other object, as JS does: fn + 1 is "[object Function]1" and -fn is NaN. Promises and tool references still reject, so a missing await cannot hide.
2026-11-18 18:55:16 +01:00
James Long
a73657f3f9
refactor(codemode): flatten the VM into src and remove two-engine leftovers ( #63377 )
2026-11-12 13:39:15 -05:00
James Long
ffde0f7d47
feat(codemode): add a bytecode VM engine behind CodeMode.make({ engine: "vm" }) ( #62357 )
2026-11-06 11:37:45 -06:00
Aiden Cline
adcfc83d19
feat(codemode): let programs import globals by Node module name ( #61151 )
2026-11-01 21:52:57 -06:00
Aiden Cline
711802c3a3
fix(codemode): let search be awaited or chained like a Promise ( #59981 )
2026-10-28 15:31:19 -05:00
Aiden Cline
c96d200de8
fix(codemode): report parse errors with a location and a hint ( #59834 )
2026-10-28 10:17:11 -05:00
Aiden Cline
dc48655743
fix(codemode): compare with == by IsLooselyEqual and stop deep-walking operands for opaque references ( #50830 )
2026-09-24 00:36:41 -05:00
Aiden Cline
3f0118022b
feat(codemode): add Promise.withResolvers, print errors in console, name values in iterable errors ( #50389 )
2026-09-21 11:56:15 -05:00
Aiden Cline
cbdd1f66da
fix(codemode): locate failures in the submitted source ( #50197 )
2026-09-20 20:47:54 -05:00
Aiden Cline
62dc1f7696
feat(codemode): add toLocaleString, Error.isError, and Map.getOrInsert ( #50098 )
2026-09-20 10:23:23 -05:00
opencode-agent[bot]
004583d598
refactor(codemode): remove TypeScript stripping ( #49870 )
...
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-09-18 21:24:11 -05:00
Aiden Cline
48875190ef
feat(codemode): fail runaway recursion with a RangeError at 10000 nested calls ( #48891 )
2026-09-13 21:04:36 -05:00
Aiden Cline
5d3019e5a1
refactor(codemode): materialize interpreter failures once and locate them at the call boundary ( #48770 )
2026-09-13 20:19:31 -05:00