MCPcopy Create free account
hub / github.com/mozilla/rhino / construct

Method construct

rhino/src/main/java/org/mozilla/javascript/Function.java:46–46  ·  view source on GitHub ↗

Call the function as a constructor. This method is invoked by the runtime in order to satisfy a use of the JavaScript new operator. This method is expected to create a new object and return it. @param cx the current Context for this thread @param scope an enclosing scope of the caller e

(Context cx, VarScope scope, Object[] args)

Source from the content-addressed store, hash-verified

44 * @return the allocated object
45 */
46 @Override
47 Scriptable construct(Context cx, VarScope scope, Object[] args);
48
49 /**

Callers 15

constructMethod · 0.65
arraySpeciesCreateMethod · 0.65
newObjectMethod · 0.65
constructMethod · 0.65
CapabilityMethod · 0.65
constructMethod · 0.65
constructMethod · 0.65
fireConstructorMethod · 0.65
_callSuperFunction · 0.65

Implementers 10

NativeProxyFunctionrhino/src/main/java/org/mozilla/javasc
JSFunctionrhino/src/main/java/org/mozilla/javasc
XMLListrhino-xml/src/main/java/org/mozilla/ja
BaseFunctionrhino/src/main/java/org/mozilla/javasc
Delegatorrhino/src/main/java/org/mozilla/javasc
NativeJavaClassrhino/src/main/java/org/mozilla/javasc
NativeContinuationrhino/src/main/java/org/mozilla/javasc
NativeJavaTopPackagerhino/src/main/java/org/mozilla/javasc
NativeRegExpCallablerhino/src/main/java/org/mozilla/javasc
Printtests/src/test/java/org/mozilla/javasc

Calls

no outgoing calls

Tested by 2

checkCtorArityMethod · 0.52