-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
HTMLRewritercloudflare workers APIcloudflare workers APIassertion failedCrashes in a build with assertions enabledCrashes in a build with assertions enabledconfirmed bugWe can reproduce this issueWe can reproduce this issuecrashAn issue that could cause a crashAn issue that could cause a crashlinuxAn issue that occurs on LinuxAn issue that occurs on Linuxruntime
Description
How can we reproduce the crash?
this crashes
const a = await fetch("https://loja.navesa.com.br/lateral-interna-do-paralama-dianteiro-esquerdo-para-renault-sandero-2014-ate-2023-cod-638313232r?_pid=xsbbc")
const rewriter = new HTMLRewriter().on("script", {
element(a) {
console.log(a.before())
},
});
rewriter.transform(a)this does not
const a = await fetch("https://loja.navesa.com.br/lateral-interna-do-paralama-dianteiro-esquerdo-para-renault-sandero-2014-ate-2023-cod-638313232r?_pid=xsbbc")
const rewriter = new HTMLRewriter().on("script", {
element(a) {
console.log(a.before("b"))
},
});
rewriter.transform(a)Relevant log output
Stack Trace (bun.report)
Bun v1.2.19 (aad3abe) on linux x86_64 [RunCommand]
panic: unreachable
JSGlobalObject.zig:596:bun.js.event_loop.tickevent_loop.zig:403:bun.js.jsc.OpaqueWrap.callbackbindings.cpp:5326:JSC__VM__holdAPILockVM.zig:41:bun_js.Run.bootrun_command.zig:1246:cli.run_command.RunCommand._bootAndHandleErrorrun_command.zig:0:cli.run_command.RunCommand.execcli.zig:861:cli.Command.startcli.zig:46:cli.Cli.startmain.zig:66:main
Features: transpiler_cache, tsconfig, dotenv, fetch, html_rewriter, http_server, jsc
Metadata
Metadata
Assignees
Labels
HTMLRewritercloudflare workers APIcloudflare workers APIassertion failedCrashes in a build with assertions enabledCrashes in a build with assertions enabledconfirmed bugWe can reproduce this issueWe can reproduce this issuecrashAn issue that could cause a crashAn issue that could cause a crashlinuxAn issue that occurs on LinuxAn issue that occurs on Linuxruntime