mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Adding new section authored by martin.honnen@t-online.de from bug 150859.
This commit is contained in:
parent
de66884442
commit
000bba17d1
@ -40,6 +40,7 @@
|
||||
* See http://bugzilla.mozilla.org/show_bug.cgi?id=137000
|
||||
* See http://bugzilla.mozilla.org/show_bug.cgi?id=138708
|
||||
* See http://bugzilla.mozilla.org/show_bug.cgi?id=150032
|
||||
* See http://bugzilla.mozilla.org/show_bug.cgi?id=150859
|
||||
*
|
||||
*/
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -169,13 +170,39 @@ actual = obj.getVarA(); // this one was returning 'undefined'
|
||||
expect = 'A';
|
||||
addThis();
|
||||
|
||||
status = inSection(7);
|
||||
status = inSection(7);
|
||||
actual = obj.getVarB(); // this one is easy; it never failed
|
||||
expect = 'C';
|
||||
addThis();
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* By martin.honnen@t-online.de
|
||||
* From http://bugzilla.mozilla.org/show_bug.cgi?id=150859
|
||||
*
|
||||
* Here the same name is being used for a local var in F
|
||||
* and as a property name for |F| as an object
|
||||
*
|
||||
* Twist: the property is added via another function.
|
||||
*/
|
||||
function setFProperty(val)
|
||||
{
|
||||
F.propA = val;
|
||||
}
|
||||
|
||||
function F()
|
||||
{
|
||||
var propA = 'Local variable in F';
|
||||
}
|
||||
|
||||
status = inSection(8);
|
||||
setFProperty('Hello');
|
||||
actual = F.propA; // this was returning 'undefined'
|
||||
expect = 'Hello';
|
||||
addThis();
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user