Implement eval() as a sentinel-intercepted builtin that parses and executes code strings at runtime with proper scope and strict mode handling. Direct eval inherits caller scope (vars leak in non-strict), while indirect and strict eval contain declarations via function scope. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
34 B
Plaintext
8 lines
34 B
Plaintext
3
|
|
42
|
|
true
|
|
undefined
|
|
3
|
|
function
|
|
30
|