forked from mirrors/gecko-dev
Backed out changeset f1fbe41260cc (bug 1884837) for dt failure on browser_dbg-features-asm.js . CLOSED TREE
This commit is contained in:
parent
23294d99b8
commit
4a046a9cbe
2 changed files with 37 additions and 39 deletions
|
|
@ -1269,9 +1269,6 @@ bool DebuggerObject::CallData::createSource() {
|
||||||
|
|
||||||
bool isScriptElement = ToBoolean(v);
|
bool isScriptElement = ToBoolean(v);
|
||||||
|
|
||||||
RootedScript script(cx);
|
|
||||||
{
|
|
||||||
AutoRealm ar(cx, referent);
|
|
||||||
JS::CompileOptions compileOptions(cx);
|
JS::CompileOptions compileOptions(cx);
|
||||||
compileOptions.lineno = startLine;
|
compileOptions.lineno = startLine;
|
||||||
compileOptions.column = JS::ColumnNumberOneOrigin(startColumn);
|
compileOptions.column = JS::ColumnNumberOneOrigin(startColumn);
|
||||||
|
|
@ -1309,6 +1306,9 @@ bool DebuggerObject::CallData::createSource() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RootedScript script(cx);
|
||||||
|
{
|
||||||
|
AutoRealm ar(cx, referent);
|
||||||
script = JS::Compile(cx, compileOptions, srcBuf);
|
script = JS::Compile(cx, compileOptions, srcBuf);
|
||||||
if (!script) {
|
if (!script) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
const v3 = newGlobal({ newCompartment: true, discardSource: true });
|
|
||||||
Debugger().addDebuggee(v3).createSource(true);
|
|
||||||
Loading…
Reference in a new issue