archives

« Bugzilla Issues Index

#288 — 10.6-13-a-2 and 10.6-13-a-3 are invalid


Both test cases require from an implementation to support the non-standard "Function.prototype.caller" property. The tests are run in non-strict mode, so this is neither subject to 10.6 step 14b nor to 13.2 step 19b.


Agreed. ...a-3.js should be changed from:
function testcase() {
var called = false;

function test1(flag) {
if (flag!==true) {
test2();
} else {
called = true;
}
}

function test2() {
var explicit = arguments.callee.caller;
explicit(true);
}

test1();
return called;
}

to:
function testcase() {
var called = false;

function test1(flag) {
if (flag!==true) {
test2();
} else {
called = true;
}
}

function test2() {
if (arguments.callee.caller===undefined) {
called = true; //Extension not supported - fake it
} else {
var explicit = arguments.callee.caller;
explicit(true);
}
}

test1();
return called;
}

and made a "best practice" test.



Changes checked into Hg.