This interface represent a thing which can be executed in JavaScript, whether that is a script, function call, or function constructor.
| 5 | * function call, or function constructor. |
| 6 | */ |
| 7 | public interface JSCodeExec<T extends ScriptOrFn<T>> { |
| 8 | |
| 9 | /** |
| 10 | * Executes the code represented by this object. |
| 11 | * |
| 12 | * @param cx should be context in which the call is being made |
| 13 | * @param executableObject should be function or script which owns this code. |
| 14 | * @param newTarget should be null in the case of script or function calls, and the `new.target` |
| 15 | * of constructors. |
| 16 | * @param scope should be the scope in which the script, function, or constructor should |
| 17 | * execute. This should normally be derived from the scope which the function or constructor |
| 18 | * was declared, or for scripts should be the scope in which they are being executed. |
| 19 | * @param thisObj should be the value of `this` that the code will see while executing. |
| 20 | * @param args is the array of arguments passed to the code. |
| 21 | * @return the result of executing the code. |
| 22 | */ |
| 23 | Object execute( |
| 24 | Context cx, |
| 25 | T executableObject, |
| 26 | Object newTarget, |
| 27 | VarScope scope, |
| 28 | Object thisObj, |
| 29 | Object[] args); |
| 30 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…