need to move some tests over to best practices.
This commit is contained in:
David Fugate 2012-03-09 11:54:51 -08:00
parent 448262e29e
commit 4ae147241a
64 changed files with 65 additions and 65 deletions

View File

@ -16,6 +16,6 @@ f();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -19,6 +19,6 @@ new f();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -19,6 +19,6 @@ new f();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -18,6 +18,6 @@ var obj = new (function () {
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -19,6 +19,6 @@ f();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -20,6 +20,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -22,6 +22,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@ f1();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -21,6 +21,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -20,6 +20,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ o.foo;
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -19,6 +19,6 @@ f();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ o.foo = 8;
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -6,7 +6,7 @@
/**
* @path ch15/15.3/15.3.5/15.3.5.4/15.3.5.4_2-53gs.js
* @description Strict mode - checking access to strict function caller from non-strict function (Injected getter includes strict directive prologue)
* @onlyStrict
* @noStrict
* @negative TypeError
*/
@ -17,6 +17,6 @@ o.foo;
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -17,6 +17,6 @@ o.foo = 10;
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -17,6 +17,6 @@ foo();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ eval("f();");
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ Function("return f();")();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ new Function("return f();")();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.apply();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.apply(null);
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.apply(undefined);
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -17,6 +17,6 @@ f.apply(o);
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.apply(fnGlobalObject());
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.call();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.call(null);
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.call(undefined);
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -17,6 +17,6 @@ f.call(o);
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.call(fnGlobalObject());
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -18,6 +18,6 @@
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.bind()();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.bind(null)();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.bind(undefined)();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -17,6 +17,6 @@ f.bind(o)();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f.bind(fnGlobalObject())();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -16,6 +16,6 @@ f();
function gNonStrict() {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}

View File

@ -11,7 +11,7 @@
*/
var gNonStrict = function () {
return gNonStrict.caller;
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
function f() {

View File

@ -10,7 +10,7 @@
* @negative TypeError
*/
var gNonStrict = Function("return gNonStrict.caller;");
var gNonStrict = Function("return gNonStrict.caller || gNonStrict.caller.throwTypeError;");
function f() {
"use strict";

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":11563,"testSuite":["json/ch07.json","json/ch08.json","json/ch09.json","json/ch10.json","json/ch11.json","json/ch12.json","json/ch13.json","json/ch14.json","json/ch15.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":11563,"testSuite":["json/ch07.json","json/ch08.json","json/ch09.json","json/ch10.json","json/ch11.json","json/ch12.json","json/ch13.json","json/ch14.json","json/ch15.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":20,"testSuite":["json/bestPractice.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":20,"testSuite":["json/bestPractice.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":715,"testSuite":["json/ch07.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":715,"testSuite":["json/ch07.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":182,"testSuite":["json/ch08.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":182,"testSuite":["json/ch08.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":128,"testSuite":["json/ch09.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":128,"testSuite":["json/ch09.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":372,"testSuite":["json/ch10.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":372,"testSuite":["json/ch10.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":1320,"testSuite":["json/ch11.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":1320,"testSuite":["json/ch11.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":521,"testSuite":["json/ch12.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":521,"testSuite":["json/ch12.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":230,"testSuite":["json/ch13.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":230,"testSuite":["json/ch13.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":24,"testSuite":["json/ch14.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":24,"testSuite":["json/ch14.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":8071,"testSuite":["json/ch15.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":8071,"testSuite":["json/ch15.json"],"version":"ES5.1"}

View File

@ -1 +1 @@
{"date":"2012-03-06","numTests":1,"testSuite":["json/intl402.json"],"version":"ES5.1"}
{"date":"2012-03-08","numTests":1,"testSuite":["json/intl402.json"],"version":"ES5.1"}