Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Function Object start
use crate::environment::lexical_environment::Environment;
use crate::js::value::ValueData;
use crate::syntax::ast::expr::Expr;
/// Sets the functionKind
#[derive(Debug, Copy, Clone)]
pub enum FunctionKind {
Normal,
ClassConstructor,
Generator,
Async,
AsyncGenerator,
}
/// Sets the ConstructorKind
#[derive(Debug, Copy, Clone)]
pub enum ConstructorKind {
Base,
Derived,
}
/// Defines how this references are interpreted within the formal parameters and code body of the function.
#[derive(Debug, Copy, Clone)]
pub enum ThisMode {
Lexical,
Strict,
Global,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.