Class JSCodeResume.NullResume<T extends ScriptOrFn<T>>

java.lang.Object
org.htmlunit.corejs.javascript.JSCodeResume.NullResume<T>
All Implemented Interfaces:
Serializable, JSCodeResume<T>
Enclosing interface:
JSCodeResume<T extends ScriptOrFn<T>>

public static final class JSCodeResume.NullResume<T extends ScriptOrFn<T>> extends Object implements JSCodeResume<T>, Serializable
See Also:
  • Method Details

    • resume

      public Object resume(Context cx, T executableObject, Object state, VarScope scope, int operation, Object value)
      Description copied from interface: JSCodeResume
      Resuem execution of the code represented by this object.
      Specified by:
      resume in interface JSCodeResume<T extends ScriptOrFn<T>>
      Parameters:
      cx - should be context in which the call is being made
      executableObject - should be function or script which owns this code.
      state - should be the state object created at some previous point when execution was yielded.
      scope - should be the scope in which the code will be executed.
      operation - should be one of the constants defined on NativeGenerator and represents the operation being performed.
      value - represents the value being passed into the generator (see https://tc39.es/ecma262/#sec-generatorresume for details).
      Returns:
      the result of executing the code.