| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected