Clone this repository
For self-hosted knots, clone URLs may differ based on your setup.
Download tar.gz
- Add generator support with yield/yield* and proper state machine
- Add exit_reason type to stack frames for generator suspension
- Register Generator prototype for generator instances
- Add @@iterator method to Generator prototype
- Fix Promise prototype registration with register_proto
- Update promise callbacks to use call_function for JS functions
- Add microtask queue integration via run_jobs hook
- Add async function support - wrap return values in Promises
- OP_await synchronously unwraps already-resolved promises
- Update CLI to not print Promise objects (match QuickJS behavior)
- Add iterator protocol support in Array.from and concat
- Update cram tests with correct microtask timing expectations
馃 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
馃 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extended the integer index fast path to typed array operations:
- Added fast path for Int/Float indices in typed array get
- Added fast path for Int/Float indices in typed array set
- Matches the pattern used for regular array access
The typed array length was already cached in the Data_typed_array
record, so no additional caching was needed there.
Tests: 176/176 runtime tests passing, 52,631/52,631 Test262 passing
馃 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>