mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Test for upvar2 dup/dep bug 473271, from comment 8; also remove print noise from testPropagatedFunArgs crash test.
This commit is contained in:
parent
3c4a821492
commit
862f9eb6d3
@ -4542,7 +4542,7 @@ function testClosures()
|
||||
{
|
||||
function MyObject(id) {
|
||||
var thisObject = this;
|
||||
this.id = id;
|
||||
this.id = id;
|
||||
this.toString = str;
|
||||
|
||||
function str() {
|
||||
@ -4558,6 +4558,22 @@ function testClosures()
|
||||
testClosures.expected = "00,11,22,33,44";
|
||||
test(testClosures);
|
||||
|
||||
function testMoreClosures() {
|
||||
var f = {}, max = 3;
|
||||
|
||||
var hello = function(n) {
|
||||
function howdy() { return n * n }
|
||||
f.test = howdy;
|
||||
};
|
||||
|
||||
for (var i = 0; i <= max; i++)
|
||||
hello(i);
|
||||
|
||||
return f.test();
|
||||
}
|
||||
testMoreClosures.expected = 9;
|
||||
test(testMoreClosures);
|
||||
|
||||
function testLambdaInitedVar() {
|
||||
var jQuery = function (a, b) {
|
||||
return jQuery && jQuery.length;
|
||||
@ -4673,7 +4689,7 @@ test(testPropagatedFunArgs);
|
||||
function notSafe() {
|
||||
return magic;
|
||||
}
|
||||
print(notSafe());
|
||||
notSafe();
|
||||
res.push(pageInfo);
|
||||
};
|
||||
var feedTab = $("feedTab");
|
||||
|
Loading…
Reference in New Issue
Block a user