Bug 688646 - Followup fix to make recent test changes feature-test for shell-only functionality. r=orange

This commit is contained in:
Jeff Walden 2011-09-26 18:28:57 -07:00
parent 66bf666abc
commit 7c296f5d20

View File

@ -152,15 +152,17 @@ actual = F2.call(null);
expect = F2.call();
addThis();
/*
if (typeof newGlobal === "function")
{
/*
* Function.prototype.call gets lexical globals, not caller globals
*/
status = inSection(11);
actual = g2 = newGlobal('new-compartment');
g2.eval("boundMethod = Function('return this');");
expect = g2.boundMethod.call();
addThis();
status = inSection(11);
actual = g2 = newGlobal('new-compartment');
g2.eval("boundMethod = Function('return this');");
expect = g2.boundMethod.call();
addThis();
}
//-----------------------------------------------------------------------------