mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 04:57:31 +09:00
Bug 755821: Function() should use the parser's argument parsing code
This commit is contained in:
parent
e7fdd26fde
commit
0e7a16c088
24 changed files with 321 additions and 469 deletions
|
|
@ -6890,8 +6890,13 @@ class DebuggerSourceGetTextMatcher
|
|||
bool hasSourceData = ss->hasSourceData();
|
||||
if (!ss->hasSourceData() && !JSScript::loadSource(cx_, ss, &hasSourceData))
|
||||
return nullptr;
|
||||
return hasSourceData ? ss->substring(cx_, 0, ss->length())
|
||||
: NewStringCopyZ<CanGC>(cx_, "[no source]");
|
||||
if (!hasSourceData)
|
||||
return NewStringCopyZ<CanGC>(cx_, "[no source]");
|
||||
|
||||
if (ss->isFunctionBody())
|
||||
return ss->functionBodyString(cx_);
|
||||
|
||||
return ss->substring(cx_, 0, ss->length());
|
||||
}
|
||||
|
||||
ReturnType match(Handle<WasmInstanceObject*> wasmInstance) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue