Skip to content

Commit 71c6035

Browse files
committed
Bump version to 0.3.2
1 parent 7b83e86 commit 71c6035

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# 🚧 Changelog
22

3+
## 0.3.2
4+
5+
- Fix `Promise` detection for async handlers. `Promise`s in different realms
6+
will now be detected. Closes
7+
[issue #1](https://github.com/mrbbot/html-rewriter-wasm/issues/1).
8+
39
## 0.3.1
410

511
- Change the return type of `Element.attributes` to `IterableIterator`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-rewriter-wasm",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "WebAssembly version of HTMLRewriter",
55
"main": "dist/html_rewriter.js",
66
"types": "dist/html_rewriter.d.ts",

src/asyncify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ async function wrap(rewriter, fn, ...args) {
9595
while (wasm.asyncify_get_state() === State.UNWINDING) {
9696
wasm.asyncify_stop_unwind();
9797

98+
assertNoneState();
9899
assert(promises.has(stackPtr));
99100
await promises.get(stackPtr);
100101
promises.delete(stackPtr);

0 commit comments

Comments
 (0)