FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::variant FB::JSAPIProxy::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 253 of file JSAPIProxy.cpp.

254 {
255  FB::scoped_zonelock _l(getAPI(), getZone());
256  return getAPI()->Construct(args);
257 }
Provides a helper class for locking.
Definition: JSAPI.h:548
virtual SecurityZone getZone() const
Gets the currently active zone.
Definition: JSAPIImpl.h:238