Commit e3abf07
committed
chore: update goja to latest and document ES2020+ JavaScript support
The goja JavaScript engine already supports modern ES2020+ features but
all documentation and MCP tool descriptions said "ES5.1" which was
outdated and unnecessarily restrictive for AI agents writing code.
Changes:
- Update dop251/goja from 20251103 to 20260305 (latest)
- Update MCP tool description to advertise ES2020+ features (arrow
functions, const/let, template literals, destructuring, optional
chaining, nullish coalescing, classes, for-of, Map/Set, etc.)
- Update all docs/code_execution/ examples to use modern JS syntax
- Update CLAUDE.md and docs/features/code-execution.md references
- Add comprehensive modern JS feature test suite (18 tests covering
arrow functions, const/let, template literals, destructuring,
spread/rest, default parameters, classes, for-of, Promises, Symbols,
Map/Set, optional chaining, nullish coalescing, generators,
Proxy/Reflect, computed properties, shorthand properties)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e04bf28 commit e3abf07
10 files changed
Lines changed: 691 additions & 227 deletions
File tree
- docs
- code_execution
- features
- internal
- jsruntime
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
587 | 586 | | |
588 | 587 | | |
589 | 588 | | |
| |||
597 | 596 | | |
598 | 597 | | |
599 | 598 | | |
600 | | - | |
| 599 | + | |
601 | 600 | | |
602 | 601 | | |
603 | 602 | | |
| |||
0 commit comments