FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
variant JSAPISimple::Construct ( const std::vector< variant > &  args)
virtual

Called by the browser to construct the JSAPI object.

var x = new MyJSAPIObject();
Parameters
argsThe arguments.
Returns
result of constructor call, the new object
Since
1.5

Implements FB::JSAPI.

Definition at line 210 of file JSAPISimple.cpp.

211 {
212  if (!m_valid)
213  throw object_invalidated();
214 
215  throw invalid_member("constructor");
216 }
Thrown by a JSAPI object when a call is made on it after the object has been invalidated.
Definition: JSExceptions.h:69
Thrown when an Invoke, SetProperty, or GetProperty call is made for a member that is invalid (does no...
Definition: JSExceptions.h:83