Skip to content

Commit

Permalink
fix stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Sep 2, 2024
1 parent 10d48f2 commit 8e9a43f
Show file tree
Hide file tree
Showing 51 changed files with 100 additions and 49 deletions.
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ main()
[values]: #interfacing-with-the-interpreter
[asyncify]: #asyncify
[functions]: #exposing-apis
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs

- [quickjs-emscripten](#quickjs-emscripten)
- [Usage](#usage)
Expand Down
8 changes: 4 additions & 4 deletions doc/quickjs-emscripten-core/classes/QuickJSAsyncContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ socket.on("data", chunk => {

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1431](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1431)
[packages/quickjs-emscripten-core/src/context.ts:1433](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1433)

***

Expand Down Expand Up @@ -505,7 +505,7 @@ socket.write(dataLifetime?.value)

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1414](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1414)
[packages/quickjs-emscripten-core/src/context.ts:1416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1416)

***

Expand Down Expand Up @@ -643,7 +643,7 @@ See [EvalFlags](../exports.md#evalflags) for number semantics

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1440](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1440)
[packages/quickjs-emscripten-core/src/context.ts:1442](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1442)

***

Expand Down Expand Up @@ -1611,7 +1611,7 @@ properties.

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1436](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1436)
[packages/quickjs-emscripten-core/src/context.ts:1438](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1438)

***

Expand Down
8 changes: 4 additions & 4 deletions doc/quickjs-emscripten-core/classes/QuickJSContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ socket.on("data", chunk => {

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1431](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1431)
[packages/quickjs-emscripten-core/src/context.ts:1433](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1433)

***

Expand Down Expand Up @@ -521,7 +521,7 @@ socket.write(dataLifetime?.value)

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1414](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1414)
[packages/quickjs-emscripten-core/src/context.ts:1416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1416)

***

Expand Down Expand Up @@ -625,7 +625,7 @@ interrupted, the error will have name `InternalError` and message

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1440](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1440)
[packages/quickjs-emscripten-core/src/context.ts:1442](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1442)

***

Expand Down Expand Up @@ -1469,7 +1469,7 @@ properties.

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1436](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1436)
[packages/quickjs-emscripten-core/src/context.ts:1438](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1438)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:29](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L29)
[packages/quickjs-emscripten-core/src/errors.ts:33](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L33)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:33](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L33)
[packages/quickjs-emscripten-core/src/errors.ts:37](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L37)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:53](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L53)
[packages/quickjs-emscripten-core/src/errors.ts:57](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L57)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:41](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L41)
[packages/quickjs-emscripten-core/src/errors.ts:45](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L45)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:37](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L37)
[packages/quickjs-emscripten-core/src/errors.ts:41](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L41)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:25](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L25)
[packages/quickjs-emscripten-core/src/errors.ts:29](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L29)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:49](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L49)
[packages/quickjs-emscripten-core/src/errors.ts:53](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L53)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:45](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L45)
[packages/quickjs-emscripten-core/src/errors.ts:49](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L49)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ Error thrown if [QuickJSContext#unwrapResult](../../../classes/QuickJSContext.md

- [Extends](QuickJSUnwrapError.md#extends)
- [Constructors](QuickJSUnwrapError.md#constructors)
- [new QuickJSUnwrapError(cause)](QuickJSUnwrapError.md#new-quickjsunwraperrorcause)
- [new QuickJSUnwrapError(cause, context)](QuickJSUnwrapError.md#new-quickjsunwraperrorcause-context)
- [Properties](QuickJSUnwrapError.md#properties)
- [cause](QuickJSUnwrapError.md#cause)
- [context?](QuickJSUnwrapError.md#context)
- [name](QuickJSUnwrapError.md#name)

## Extends
Expand All @@ -23,14 +24,16 @@ Error thrown if [QuickJSContext#unwrapResult](../../../classes/QuickJSContext.md

## Constructors

### new QuickJSUnwrapError(cause)
### new QuickJSUnwrapError(cause, context)

> **new QuickJSUnwrapError**(`cause`): [`QuickJSUnwrapError`](QuickJSUnwrapError.md)
> **new QuickJSUnwrapError**(`cause`, `context`?): [`QuickJSUnwrapError`](QuickJSUnwrapError.md)
#### Parameters

**cause**: `unknown`

**context?**: [`QuickJSContext`](../../../classes/QuickJSContext.md)

#### Returns

[`QuickJSUnwrapError`](QuickJSUnwrapError.md)
Expand All @@ -55,6 +58,16 @@ Error thrown if [QuickJSContext#unwrapResult](../../../classes/QuickJSContext.md

***

### context?

> **context**?: [`QuickJSContext`](../../../classes/QuickJSContext.md)
#### Source

[packages/quickjs-emscripten-core/src/errors.ts:10](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L10)

***

### name

> **name**: `string` = `"QuickJSUnwrapError"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:21](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L21)
[packages/quickjs-emscripten-core/src/errors.ts:25](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L25)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:17](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L17)
[packages/quickjs-emscripten-core/src/errors.ts:21](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L21)

***

Expand Down
2 changes: 1 addition & 1 deletion doc/quickjs-emscripten/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ main()
[values]: #interfacing-with-the-interpreter
[asyncify]: #asyncify
[functions]: #exposing-apis
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs

- [quickjs-emscripten](#quickjs-emscripten)
- [Usage](#usage)
Expand Down
8 changes: 4 additions & 4 deletions doc/quickjs-emscripten/classes/QuickJSAsyncContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ socket.on("data", chunk => {

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1431](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1431)
[packages/quickjs-emscripten-core/src/context.ts:1433](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1433)

***

Expand Down Expand Up @@ -505,7 +505,7 @@ socket.write(dataLifetime?.value)

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1414](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1414)
[packages/quickjs-emscripten-core/src/context.ts:1416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1416)

***

Expand Down Expand Up @@ -643,7 +643,7 @@ See [EvalFlags](../exports.md#evalflags) for number semantics

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1440](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1440)
[packages/quickjs-emscripten-core/src/context.ts:1442](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1442)

***

Expand Down Expand Up @@ -1611,7 +1611,7 @@ properties.

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1436](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1436)
[packages/quickjs-emscripten-core/src/context.ts:1438](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1438)

***

Expand Down
8 changes: 4 additions & 4 deletions doc/quickjs-emscripten/classes/QuickJSContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ socket.on("data", chunk => {

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1431](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1431)
[packages/quickjs-emscripten-core/src/context.ts:1433](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1433)

***

Expand Down Expand Up @@ -521,7 +521,7 @@ socket.write(dataLifetime?.value)

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1414](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1414)
[packages/quickjs-emscripten-core/src/context.ts:1416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1416)

***

Expand Down Expand Up @@ -625,7 +625,7 @@ interrupted, the error will have name `InternalError` and message

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1440](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1440)
[packages/quickjs-emscripten-core/src/context.ts:1442](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1442)

***

Expand Down Expand Up @@ -1469,7 +1469,7 @@ properties.

#### Source

[packages/quickjs-emscripten-core/src/context.ts:1436](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1436)
[packages/quickjs-emscripten-core/src/context.ts:1438](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/context.ts#L1438)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:29](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L29)
[packages/quickjs-emscripten-core/src/errors.ts:33](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L33)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:33](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L33)
[packages/quickjs-emscripten-core/src/errors.ts:37](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L37)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:53](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L53)
[packages/quickjs-emscripten-core/src/errors.ts:57](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L57)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:41](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L41)
[packages/quickjs-emscripten-core/src/errors.ts:45](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L45)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:37](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L37)
[packages/quickjs-emscripten-core/src/errors.ts:41](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L41)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:25](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L25)
[packages/quickjs-emscripten-core/src/errors.ts:29](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L29)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:49](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L49)
[packages/quickjs-emscripten-core/src/errors.ts:53](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L53)

***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ node\_modules/typescript/lib/lib.es5.d.ts:1081

#### Source

[packages/quickjs-emscripten-core/src/errors.ts:45](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L45)
[packages/quickjs-emscripten-core/src/errors.ts:49](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/errors.ts#L49)

***

Expand Down
Loading

0 comments on commit 8e9a43f

Please sign in to comment.