Bug 880041 (part 21) - Use JSObject::{is,as} for GlobalObject. r=sfink.

This commit is contained in:
Nicholas Nethercote
2013-06-17 16:23:11 -07:00
parent cd57e1bbf1
commit ca35558981
34 changed files with 99 additions and 103 deletions

View File

@@ -527,7 +527,7 @@ frontend::CompileFunctionBody(JSContext *cx, MutableHandleFunction fun, CompileO
*/
BytecodeEmitter funbce(/* parent = */ NULL, &parser, funbox, script,
/* insideEval = */ false, /* evalCaller = */ NullPtr(),
fun->environment() && fun->environment()->isGlobal(),
fun->environment() && fun->environment()->is<GlobalObject>(),
options.lineno);
if (!funbce.init())
return false;