Bug 880041 (part 18) - Use JSObject::{is,as} for {,Debug}ScopeObject. r=luke.
This commit is contained in:
@@ -104,7 +104,7 @@ MaybeCheckEvalFreeVariables(JSContext *cx, HandleScript evalCaller, HandleObject
|
||||
// scope chain.
|
||||
if (pc.sc->hasDebuggerStatement()) {
|
||||
RootedObject scope(cx, scopeChain);
|
||||
while (scope->isScope() || scope->isDebugScope()) {
|
||||
while (scope->is<ScopeObject>() || scope->is<DebugScopeObject>()) {
|
||||
if (scope->is<CallObject>() && !scope->as<CallObject>().isForEval()) {
|
||||
RootedScript script(cx, scope->as<CallObject>().callee().nonLazyScript());
|
||||
if (script->argumentsHasVarBinding()) {
|
||||
|
||||
Reference in New Issue
Block a user