mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
1330491 - Assertion failure: maybeBytecode, at js/src/wasm/WasmCode.cpp:581 with Debugger
1330491 - Always provide wasm bytecode for debuggable instance.
This commit is contained in:
parent
f8d18b97b1
commit
842bee4099
1 changed files with 7 additions and 4 deletions
|
|
@ -880,13 +880,16 @@ Module::instantiate(JSContext* cx,
|
|||
// instance must hold onto a ref of the bytecode (keeping it alive). This
|
||||
// wastes memory for most users, so we try to only save the source when a
|
||||
// developer actually cares: when the compartment is debuggable (which is
|
||||
// true when the web console is open) or a names section is present (since
|
||||
// this going to be stripped for non-developer builds).
|
||||
// true when the web console is open), has code compiled with debug flag
|
||||
// enabled or a names section is present (since this going to be stripped
|
||||
// for non-developer builds).
|
||||
|
||||
const ShareableBytes* maybeBytecode = nullptr;
|
||||
if (cx->compartment()->isDebuggee() || !metadata_->funcNames.empty())
|
||||
if (cx->compartment()->isDebuggee() || metadata_->debugEnabled ||
|
||||
!metadata_->funcNames.empty())
|
||||
{
|
||||
maybeBytecode = bytecode_.get();
|
||||
|
||||
}
|
||||
auto codeSegment = CodeSegment::create(cx, code_, linkData_, *metadata_, memory);
|
||||
if (!codeSegment) {
|
||||
ReportOutOfMemory(cx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue