Enum v8::ConstructorBehavior
source · #[repr(C)]
pub enum ConstructorBehavior {
Throw,
Allow,
}
Expand description
ConstructorBehavior::Allow creates a regular API function.
ConstructorBehavior::Throw creates a “concise” API function, a function without a “.prototype” property, that is somewhat faster to create and has a smaller footprint. Functionally equivalent to ConstructorBehavior::Allow followed by a call to FunctionTemplate::RemovePrototype().