You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constrewriter=newHTMLRewriter().onDocument({text(text){console.log(`processing text '${text.text}'`);thrownewError("error!");console.log("this is unreachable");},});constres=rewriter.transform(newResponse("test"));console.log(awaitres.text());
What is the expected behavior?
$buntest.jsprocessingtext'test'1|constrewriter=newHTMLRewriter().onDocument({2|text(text){3|console.log(`processing text '${text.text}'`);4|thrownewError("error!");^error: error!at/var/home/silver/code/play/bun/test.js:4:10
What do you see instead?
$ bun test.js
processing text 'test'
processing text ''
test
Additional information
The exception does get thrown - as you can see, it cancels the rest of the handler - but it never makes it back out the other side of the transform call
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.0.3+25e69c71e70ac8a0a88f9cf15b4057bd7b2a633a
What platform is your computer?
Linux 6.4.15-200.fc38.x86_64 x86_64 unknown
What steps can reproduce the bug?
What is the expected behavior?
What do you see instead?
Additional information
The exception does get thrown - as you can see, it cancels the rest of the handler - but it never makes it back out the other side of the
transform
callThe text was updated successfully, but these errors were encountered: