Aiden Cline
9fda73df47
fix(codemode): share memory between typed arrays and ArrayBuffer
...
Add ArrayBuffer, DataView and the typed array family (Int8, Uint8,
Uint8Clamped, Int16, Uint16, Int32, Uint32, Float32, Float64) on a shared
%TypedArray%. A typed array's buffer is a real ArrayBuffer, and views over
it (typed arrays, subarray, DataView, Buffer.from(arrayBuffer)) share its
memory, including across snapshots. Binary values cross extensions as
copies of their own kind and are rejected with a hint at tools and in
results.
2026-11-18 17:09:06 +00:00
Aiden Cline
a3d6e54b3d
fix(codemode): decode UTF-8 across chunk boundaries ( #63600 )
2026-11-12 20:30:06 +00: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
xjh
96c5c3a11a
fix(codemode): preserve null in text encoding ( #57639 )
2026-10-29 21:40:05 -05:00
Aiden Cline
db45c950a9
fix(codemode): honor Uint8Array.from mappers, compare byte searches without coercion, skip flatMap holes, and truncate fractional radixes ( #57285 )
...
Co-authored-by: r266-tech <r266-tech@users.noreply.github.com>
Co-authored-by: sdivyanshu90 <divyanshu74.80@gmail.com>
Co-authored-by: icearia0219 <133481415+icearia0219@users.noreply.github.com>
2026-10-20 00:16:55 -05:00
Aiden Cline
56262121ee
feat(codemode): bind this and arguments in functions, add Function.prototype.call, apply, and bind ( #50831 )
2026-09-24 16:34:46 -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
14a3311a61
feat(codemode): add Uint8Array callback methods and coerce indexOf start indexes ( #50829 )
2026-09-23 10:27:40 -05:00
Aiden Cline
68b28bdb98
fix(codemode): coerce match/search patterns, allow any for...in target, bind the last duplicate parameter ( #50802 )
2026-09-22 23:32:27 -05:00
Aiden Cline
02566f6219
fix(codemode): live Map/Set forEach, generator prototypes, repeated function declarations, delete on non-references ( #50450 )
2026-09-21 18:09:45 -05:00
Aiden Cline
97e833a297
feat(codemode): add Iterator helpers and Iterator.from ( #50410 )
2026-09-21 14:14:24 -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
1316576720
refactor(codemode): type program values and let built-ins answer for themselves ( #50191 )
2026-09-21 11:03:16 -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
Aiden Cline
eb0e26b974
feat(codemode): return live iterators from keys, values, and entries ( #50061 )
2026-09-19 18:46:35 -05:00
Aiden Cline
cc3ce20ab4
feat(codemode): add the Headers built-in ( #49280 )
2026-09-19 12:35:14 -05:00
Aiden Cline
4cd6093e31
fix(codemode): keep one RegExp lastIndex ( #49220 )
2026-09-15 15:01:08 -05:00
Aiden Cline
0b15abbf9a
refactor(codemode): make the host boundary JSON.stringify plus a short table ( #49128 )
2026-09-15 01:23:20 -05:00
Aiden Cline
9ae714d49d
feat(codemode): add Uint8Array, drop the Program prefix, and give built-ins one context ( #49076 )
2026-09-14 23:35:48 -05:00
Aiden Cline
00a2fc97f7
feat(codemode): cross Set, RegExp, and URLSearchParams to the host in a useful form ( #49065 )
2026-09-14 17:32:42 -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
Aiden Cline
6add96698e
refactor(codemode): move built-ins onto real prototypes with native function objects ( #48608 )
2026-09-12 02:19:30 -05:00
Aiden Cline
68b862da49
refactor(codemode): make functions program objects with name and length ( #48541 )
2026-09-11 14:50:07 -05:00
Aiden Cline
10ae321bf3
refactor(codemode): give programs their own objects and arrays ( #48527 )
2026-09-11 13:36:35 -05:00
Aiden Cline
5ec7dd968c
fix(codemode): coerce enumeration sources like JS ToObject ( #48257 )
2026-09-09 22:24:55 -05:00
Aiden Cline
bdb66747e7
feat(codemode): resolve constructor to the owning built-in ( #48233 )
2026-09-09 20:14:29 -05:00
Aiden Cline
297019e321
fix(codemode): report non-constructible new callees as TypeError ( #48083 )
2026-09-09 12:22:44 -05:00
Aiden Cline
1fe06bb4ed
refactor(codemode): define built-in globals as host functions and namespaces ( #48072 )
2026-09-08 23:57:03 -05:00
Aiden Cline
0da0772bc0
refactor(codemode): use acorn's typed AST in the interpreter ( #48060 )
2026-09-08 22:20:12 -05:00
Kit Langton
dffd95ce7c
fix(codemode): reject Object.assign cycles ( #46076 )
2026-08-31 20:38:02 -04:00
Kit Langton
79c1544072
refactor(tools): unify tool APIs and result handling ( #38367 )
2026-07-23 21:13:31 +00:00
Aiden Cline
3da0dea8e7
feat(codemode): expand standard library parity ( #37943 )
2026-07-20 09:59:37 -05:00
Aiden Cline
391cfbcfe7
fix(codemode): align string, array, and Date behavior ( #37775 )
2026-07-19 21:41:06 -05:00
Aiden Cline
60c7f847c1
feat(codemode): support void and Object.is ( #37332 )
2026-07-16 11:15:29 -05:00
Aiden Cline
ecb5754f4c
refactor(codemode): rename Sandbox terminology to CodeMode ( #36768 )
2026-07-13 16:38:11 -05:00
Aiden Cline
ec8eea7cbe
test(codemode): add Test262 array coverage ( #35965 )
2026-07-08 17:26:11 -05:00
Aiden Cline
f86e1cc1ff
fix(codemode): preserve collection value identity ( #35776 )
2026-07-07 13:40:55 -05:00
Aiden Cline
1fb2837fd3
feat(codemode): expand numeric standard library ( #35749 )
2026-07-07 12:11:57 -05:00
Aiden Cline
ba24037e64
feat(codemode): math parity ( #35609 )
2026-07-06 16:47:17 -05:00
Kit Langton
0e1c0414c2
fix(codemode): align mutable JavaScript semantics ( #35598 )
2026-07-06 15:55:32 -04:00
Aiden Cline
5b2d90a441
feat(codemode): expand standard library support ( #35566 )
2026-07-06 10:36:02 -05:00
Aiden Cline
12d9f4b29b
feat(codemode): add confined execution package ( #35118 )
...
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-07-03 10:57:16 -05:00