public interface JSCodeResume<T extends ScriptOrFn<T>>
| Modifier and Type | Field and Description |
|---|---|
static JSCodeResume |
NULL_RESUMABLE |
| Modifier and Type | Method and Description |
|---|---|
Object |
resume(Context cx,
T executableObject,
Object state,
Scriptable scope,
int operation,
Object value)
Resuem execution of the code represented by this object.
|
static final JSCodeResume NULL_RESUMABLE
Object resume(Context cx, T executableObject, Object state, Scriptable scope, int operation, Object value)
cx - should be context in which the call is being madeexecutableObject - 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).Copyright © 2025 HtmlUnit. All rights reserved.