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

Class NotCallable

rhino/src/main/java/org/mozilla/javascript/JSCode.java:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 public static final JSCode<JSFunction> NOT_CALLABLE = new NotCallable();
35
36 private static class NotCallable extends JSCode<JSFunction> implements Serializable {
37
38 private static final long serialVersionUID = -31340315773728063L;
39
40 @Override
41 public Object execute(
42 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
43 throw ScriptRuntime.typeError("Not callable as function");
44 }
45
46 @Override
47 public Object resume(Context cx, JSFunction f, Object state, VarScope s, int op, Object v) {
48 return null;
49 }
50 }
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected