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
James Long
b9029e64a0
refactor(codemode): split the language layer from Code Mode ( #64487 )
2026-11-17 15:21:51 -05:00
Aiden Cline
eaa6075572
feat(codemode): add Node's Buffer ( #64365 )
2026-11-16 23:55:30 -06:00
Aiden Cline
042badd23f
feat(codemode): let a synchronous global block on an Effect ( #64363 )
2026-11-16 23:54:45 -06:00
Aiden Cline
a8dde001d3
feat(codemode): stream fetch response bodies ( #63436 )
2026-11-12 17:50:06 -06:00
Aiden Cline
a3d6e54b3d
fix(codemode): decode UTF-8 across chunk boundaries ( #63600 )
2026-11-12 20:30:06 +00: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
ecc075a043
fix(codemode): visit inherited enumerable keys in for...in ( #59933 )
2026-10-28 23:44:28 -05:00
Aiden Cline
711802c3a3
fix(codemode): let search be awaited or chained like a Promise ( #59981 )
2026-10-28 15:31:19 -05:00
Rhys Sullivan
3b593dd5d2
fix(codemode): run each job to completion ( #54276 )
...
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-10-20 13:19:00 -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
4d3d8fd769
docs: trim agent instructions ( #54678 )
2026-10-11 22:32:18 -05:00
Aiden Cline
5335347e80
feat(codemode): add WeakMap and WeakSet ( #51257 )
2026-09-25 00:15:19 -05:00
Aiden Cline
962c14a49c
fix(codemode): honor thisArg, program toString in computed keys, and ToPrimitive in String and Number arguments ( #51264 )
2026-09-24 23:46:15 -05:00
Aiden Cline
e23d89c9a9
fix(codemode): destructure object patterns from primitives and convert Date components through ToPrimitive ( #51239 )
2026-09-24 19:32:19 -05:00
Aiden Cline
5256f30957
feat(codemode): honor program valueOf and toString in operators and conversions ( #50837 )
2026-09-24 18:45:48 -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
a16eedfed7
fix(codemode): make derived error constructors inherit from Error ( #51045 )
2026-09-24 14:03:10 -05:00
Aiden Cline
318a8c1aba
feat(codemode): add Object.freeze/seal/create/getPrototypeOf and structuredClone ( #50834 )
2026-09-24 00:50:54 -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
17abc5906b
feat(codemode): add tagged templates and String.raw ( #50791 )
2026-09-22 21:25:21 -05:00
Aiden Cline
bab26d63ea
docs(codemode): correct the interpreter support matrix ( #50789 )
2026-09-22 20:49:54 -05:00
Aiden Cline
9fdcb8da41
fix(codemode): coerce built-in arguments as in JS instead of requiring numbers and strings ( #50492 )
2026-09-21 23:04:04 -05:00
Aiden Cline
6f8c5ae0aa
fix(codemode): bind generator parameters at the call, not the first next() ( #50489 )
2026-09-21 22:42:10 -05:00
Aiden Cline
651529d64e
fix(codemode): coerce any value to a property key ( #50479 )
2026-09-21 21:35:20 -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
4cc9b90f27
fix(codemode): add Promise.try and surface a failing iterator close on generator return ( #50419 )
2026-09-21 15:35:11 -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
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
d797722187
feat(codemode): carry cause and own data across the error boundary ( #49390 )
2026-09-16 15:58:05 -05:00
Aiden Cline
c57733a647
refactor(codemode): before/after hooks for tool and extension calls ( #49242 )
2026-09-15 23:05:06 -05:00
Aiden Cline
4cd6093e31
fix(codemode): keep one RegExp lastIndex ( #49220 )
2026-09-15 15:01:08 -05:00
Aiden Cline
d9dfc5c1d6
refactor(codemode): extensions are host functions only ( #49196 )
2026-09-15 13:42:51 -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
76594882b4
fix(codemode): bound what one built-in can build with string, array, and promise caps ( #49019 )
2026-09-14 12:54:02 -05:00
Aiden Cline
3468a092c9
feat(codemode): expose host classes and functions through extensions ( #48941 )
2026-09-14 12:29:00 -05:00
Aiden Cline
3045156fa6
fix(codemode): strip __proto__ keys at host object boundaries ( #48926 )
2026-09-14 00:49:42 -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
Aiden Cline
6add96698e
refactor(codemode): move built-ins onto real prototypes with native function objects ( #48608 )
2026-09-12 02:19:30 -05:00