Skip to content

Commit 22f2c0f

Browse files
committed
update docs & changelog
1 parent 82b001a commit 22f2c0f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.23.0
4+
5+
- [#114](https://github.com/justjake/quickjs-emscripten/pull/114) (thanks to @yar2001) improve stack size for ASYNCIFY build variants:
6+
- Change the default ASYNCIFY_STACK_SIZE from 4096 bytes to 81920 bytes. This equates to an increase from approximately 12 to 297 function frames. See the PR for more details.
7+
- `QuickJSAsyncRuntime.setMaxStackSize(stackSizeBytes)` now also adjusts the ASYNCIFY_STACK_SIZE for the entire module.
8+
39
## v0.22.0
410

511
- [#78](https://github.com/justjake/quickjs-emscripten/pull/78), [#105](https://github.com/justjake/quickjs-emscripten/pull/105) (thanks to @ayaboy) add Symbol helpers `context.newUniqueSymbol`, `context.newSymbolFor`, as well as support for symbols in `context.dump`.

Diff for: ts/runtime-asyncify.ts

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { QuickJSAsyncWASMModule } from "./module-asyncify"
12
import { Lifetime } from "."
23
import { QuickJSAsyncContext } from "./context-asyncify"
34
import { QuickJSAsyncEmscriptenModule } from "./emscripten-types"
@@ -72,4 +73,15 @@ export class QuickJSAsyncRuntime extends QuickJSRuntime {
7273
moduleNormalizer as JSModuleNormalizer | undefined
7374
)
7475
}
76+
77+
/**
78+
* Set the max stack size for this runtime in bytes.
79+
* To remove the limit, set to `0`.
80+
*
81+
* Setting this limit also adjusts the global `ASYNCIFY_STACK_SIZE` for the entire {@link QuickJSAsyncWASMModule}.
82+
* See the [pull request](https://github.com/justjake/quickjs-emscripten/pull/114) for more details.
83+
*/
84+
public override setMaxStackSize(stackSize: number): void {
85+
return super.setMaxStackSize(stackSize)
86+
}
7587
}

0 commit comments

Comments
 (0)