Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.39 KB

JSPromiseStatePending.md

File metadata and controls

48 lines (27 loc) · 1.39 KB

quickjs-emscriptenquickjs-emscripten-coreReadme | Exports


quickjs-emscripten / quickjs-emscripten-core / JSPromiseStatePending

Interface: JSPromiseStatePending

Pending promise state. See JSPromiseState.

Contents

Properties

type

type: "pending"

Source

packages/quickjs-emscripten-core/src/deferred-promise.ts:21

Accessors

error

get error(): Error

The error property here allows unwrapping a JSPromiseState with QuickJSContext#unwrapResult. Unwrapping a pending promise will throw a QuickJSPromisePending error.

Returns

Error

Source

packages/quickjs-emscripten-core/src/deferred-promise.ts:26


Generated using typedoc-plugin-markdown and TypeDoc