Backed out changeset 912d7039be45 (bug 1118865)

This commit is contained in:
Wes Kocher 2015-03-30 18:50:05 -07:00
parent e226c3a7c6
commit 482117a15c
2 changed files with 2 additions and 13 deletions

View File

@ -1,10 +0,0 @@
var dbgGlobal = newGlobal();
var dbg = new dbgGlobal.Debugger();
dbg.addDebuggee(this);
function f() {
var a = arguments;
a[1];
dbg.getNewestFrame().eval("a");
}
f();

View File

@ -1430,9 +1430,8 @@ class DebugScopeProxy : public BaseProxyHandler
static bool isMagicMissingArgumentsValue(JSContext* cx, ScopeObject& scope, HandleValue v)
{
bool isMagic = v.isMagic() && v.whyMagic() == JS_OPTIMIZED_ARGUMENTS;
MOZ_ASSERT_IF(isMagic,
isFunctionScope(scope) &&
scope.as<CallObject>().callee().nonLazyScript()->argumentsHasVarBinding());
MOZ_ASSERT_IF(isMagic, isFunctionScope(scope) &&
!scope.as<CallObject>().callee().nonLazyScript()->needsArgsObj());
return isMagic;
}