Expand description
Expression evaluation.
This module provides the core expression evaluation logic for the JavaScript interpreter. It handles all expression types defined in the AST.
Structs§
- Generator
Object - Generator object that stores the suspended state of a generator function.
- Simple
Function Object - Simple function object that stores function metadata for evaluation. Instead of storing AST data directly, we store references to the source AST.
Enums§
- Generator
State - Generator state.
Functions§
- call_
function_ object - Call a function object.
- create_
function_ object - Create a function object from FunctionData. Note: This creates a closure that references the AST. The AST must remain valid for the lifetime of the function object.
- evaluate_
class - Evaluate a class definition (used by both ClassExpression and ClassDeclaration). Returns a constructor function object with methods on its prototype.
- evaluate_
class_ expression - Evaluate a class expression and return the constructor function.
- evaluate_
expression - Evaluate an expression and return its value.
- is_
simple_ function_ object - Type ID for SimpleFunctionObject - used for downcasting
- strict_
equality - to_
boolean - Convert a value to boolean.