Skip to main content

Module expression

Module expression 

Source
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§

GeneratorObject
Generator object that stores the suspended state of a generator function.
SimpleFunctionObject
Simple function object that stores function metadata for evaluation. Instead of storing AST data directly, we store references to the source AST.

Enums§

GeneratorState
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.