mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 688646 - Followup fix to make recent test changes feature-test for shell-only functionality. r=orange
This commit is contained in:
parent
de51de9a98
commit
2a604475b1
@ -152,15 +152,17 @@ actual = F2.call(null);
|
||||
expect = F2.call();
|
||||
addThis();
|
||||
|
||||
/*
|
||||
* 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();
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user