Don't use Annex B extensions in main test suite

Fixes #185
Fixes #186
This commit is contained in:
André Bargull 2015-03-23 19:29:25 +01:00
parent ceeefa3196
commit a7192a9ea5
2 changed files with 3 additions and 3 deletions

View File

@ -8,13 +8,13 @@
es5id: 15.2.3.6-2-17-1 es5id: 15.2.3.6-2-17-1
description: > description: >
Object.defineProperty - argument 'P' is a number that converts to Object.defineProperty - argument 'P' is a number that converts to
a string (value is 1(trailing 5 zeros)) a string (value is 1)
includes: [runTestCase.js] includes: [runTestCase.js]
---*/ ---*/
function testcase() { function testcase() {
var obj = {}; var obj = {};
Object.defineProperty(obj, 000001, {}); Object.defineProperty(obj, 1, {});
return obj.hasOwnProperty("1"); return obj.hasOwnProperty("1");

View File

@ -14,7 +14,7 @@ var __repl = "$1";
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
if (__str.replace(__pattern, __repl)!=='aaaaa') { if (__str.replace(__pattern, __repl)!=='aaaaa') {
$ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\1*,\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: '+__str.replace(__pattern, __repl)); $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: '+__str.replace(__pattern, __repl));
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////