Interface: JSPromiseStatePending
February 16, 2026 ยท View on GitHub
quickjs-emscripten / quickjs-emscripten-core / JSPromiseStatePending
Interface: JSPromiseStatePending
Defined in: packages/quickjs-emscripten-core/src/deferred-promise.ts:20
Pending promise state. See JSPromiseState.
Contents
Properties
type
type:
"pending"
Defined in: packages/quickjs-emscripten-core/src/deferred-promise.ts:21
Accessors
error
Get Signature
get error():
Error
Defined in: packages/quickjs-emscripten-core/src/deferred-promise.ts:26
The error property here allows unwrapping a JSPromiseState with QuickJSContext#unwrapResult. Unwrapping a pending promise will throw a QuickJSPromisePending error.
Returns
Error