mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +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
|
|
@ -130,7 +130,9 @@ PrepareScript(nsIURI* uri,
|
|||
MutableHandleFunction function)
|
||||
{
|
||||
JS::CompileOptions options(cx);
|
||||
options.setFileAndLine(uriStr, 1)
|
||||
// Use line 0 to make the function body starts from line 1 when
|
||||
// |reuseGlobal == true|.
|
||||
options.setFileAndLine(uriStr, reuseGlobal ? 0 : 1)
|
||||
.setVersion(JSVERSION_LATEST);
|
||||
if (!charset.IsVoid()) {
|
||||
char16_t* scriptBuf = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue