Plugged a global thisarg hole with a new test and fixed an operator

This commit is contained in:
Bill Ticehurst 2012-05-18 08:57:21 -07:00
parent f117cde741
commit 9c48816277
7 changed files with 20 additions and 6 deletions

View File

@ -0,0 +1,14 @@
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright and this notice and otherwise comply with the Use Terms.
/**
* @path ch10/10.4/10.4.3/10.4.3-1-18gs.js
* @description Strict - checking 'this' from a global scope (eval includes strict directive prologue)
* @onlyStrict
*/
if (eval("\"use strict\";\nthis") !== fnGlobalObject()) {
throw "'this' had incorrect value!";
}

View File

@ -10,7 +10,7 @@
*/
function testcase(){
undefined === 5;
undefined = 5;
if(typeof undefined !== "undefined") return false;
var nosuchproperty;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"numTests":11569,"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"]}
{"numTests":11570,"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"]}

View File

@ -1 +1 @@
{"date":"2012-05-17","version":"ES5.1"}
{"date":"2012-05-18","version":"ES5.1"}

View File

@ -1 +1 @@
{"numTests":376,"testSuite":["json/ch10.json"]}
{"numTests":377,"testSuite":["json/ch10.json"]}