mirror of https://github.com/tc39/test262.git
parent
ceeefa3196
commit
a7192a9ea5
|
@ -8,13 +8,13 @@
|
|||
es5id: 15.2.3.6-2-17-1
|
||||
description: >
|
||||
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]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var obj = {};
|
||||
Object.defineProperty(obj, 000001, {});
|
||||
Object.defineProperty(obj, 1, {});
|
||||
|
||||
return obj.hasOwnProperty("1");
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ var __repl = "$1";
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
//CHECK#1
|
||||
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));
|
||||
}
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue