[−][src]Trait boa::class::Class
Native class.
Associated Constants
pub const NAME: &'static str
[src]
The binding name of the object.
pub const LENGTH: usize
[src]
The amount of arguments the class constructor
takes, default is 0
.
pub const ATTRIBUTE: Attribute
[src]
The attibutes the class will be binded with, default is writable
, enumerable
, configurable
.
Required methods
pub fn constructor(
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Self>
[src]
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Self>
The constructor of the class.
pub fn init(class: &mut ClassBuilder<'_>) -> Result<()>
[src]
Initializes the internals and the methods of the class.