mirror of https://github.com/tc39/test262.git
Bug 1128: use Date.prototype.getFullYear() in S15.2.2.1_A2_T5
Bug 1131: use String.prototype.charAt() in 15.12.3-11-26 Both of these changes were accidentaly dropped when I regenerated patches for these bugs. I have grepped the testsuite to ensure that the annexB functions only appear in the annexB section of the testsuite. NOTE: Also regenerated the website based on this change. (Still waiting for permission to actually update the live website)
This commit is contained in:
parent
87605ba3b5
commit
ada9da5aa9
|
@ -16,6 +16,6 @@ function testcase() {
|
|||
arrObj[2] = "c";
|
||||
|
||||
var jsonText = JSON.stringify(arrObj, undefined, "").toString();
|
||||
return jsonText.substr(jsonText.length - 1, 1) === "]";
|
||||
return jsonText.charAt(jsonText.length - 1) === "]";
|
||||
}
|
||||
runTestCase(testcase);
|
||||
|
|
|
@ -19,7 +19,7 @@ if (n_obj !== obj) {
|
|||
}
|
||||
|
||||
//CHECK#2
|
||||
if ((n_obj.getYear() !== 78)||(n_obj.getMonth() !== 3)) {
|
||||
if ((n_obj.getFullYear() !== 1978)||(n_obj.getMonth() !== 3)) {
|
||||
$ERROR('#2: When the Object constructor is called and if the value is an Object simply value returns.');
|
||||
}
|
||||
|
||||
|
|
|
@ -5850,7 +5850,7 @@
|
|||
"path":"TestCases/ch15/15.12/15.12.3/15.12.3-11-25.js"
|
||||
},
|
||||
{
|
||||
"code":"Ly8vIENvcHlyaWdodCAoYykgMjAxMiBFY21hIEludGVybmF0aW9uYWwuICBBbGwgcmlnaHRzIHJlc2VydmVkLiANCi8qKg0KICogQHBhdGggY2gxNS8xNS4xMi8xNS4xMi4zLzE1LjEyLjMtMTEtMjYuanMNCiAqIEBkZXNjcmlwdGlvbiBKU09OLnN0cmluZ2lmeSAtIHRoZSBsYXN0IGVsZW1lbnQgb2YgdGhlIGNvbmNhdGVuYXRpb24gaXMgJ10nIChUaGUgYWJzdHJhY3Qgb3BlcmF0aW9uIEpBKHZhbHVlKSBzdGVwIDEwLmIuaWlpKQ0KICovDQoNCg0KZnVuY3Rpb24gdGVzdGNhc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0Y2FzZSk7DQo=",
|
||||
"commentary":"",
|
||||
"description":"JSON.stringify - the last element of the concatenation is ']' (The abstract operation JA(value) step 10.b.iii)",
|
||||
"path":"TestCases/ch15/15.12/15.12.3/15.12.3-11-26.js"
|
||||
|
@ -6234,7 +6234,7 @@
|
|||
"path":"TestCases/ch15/15.2/15.2.2/S15.2.2.1_A2_T4.js"
|
||||
},
|
||||
{
|
||||
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBXaGVuIHRoZSBPYmplY3QgY29uc3RydWN0b3IgaXMgY2FsbGVkIHdpdGggb25lIGFyZ3VtZW50IHZhbHVlIGFuZAogKiB0aGUgdmFsdWUgaXMgYSBuYXRpdmUgRUNNQVNjcmlwdCBvYmplY3QsIGRvIG5vdCBjcmVhdGUgYSBuZXcgb2JqZWN0IGJ1dCBzaW1wbHkgcmV0dXJuIHZhbHVlCiAqCiAqIEBwYXRoIGNoMTUvMTUuMi8xNS4yLjIvUzE1LjIuMi4xX0EyX1Q1LmpzCiAqIEBkZXNjcmlwdGlvbiBUaGUgdmFsdWUgaXMgYSBEYXRlIG9iamVjdAogKi8KCnZhciBvYmogPSBuZXcgRGF0ZSgxOTc4LDMpOwoKdmFyIG5fb2JqID0gbmV3IE9iamVjdChvYmopOwoKLy9DSEVDSyMxCmlmIChuX29iaiAhPT0gb2JqKSB7CiAgJEVSUk9SKCcjMTogV2hlbiB0aGUgT2JqZWN0IGNvbnN0cnVjdG9yIGlzIGNhbGxlZCBhbmQgaWYgdGhlIHZhbHVlIGlzIGFuIE9iamVjdCBzaW1wbHkgdmFsdWUgcmV0dXJucy4nKTsKfQoKLy9DSEVDSyMyCmlmICgobl9vYmouZ2V0WWVhcigpICE9PSA3OCl8fChuX29iai5nZXRNb250aCgpICE9PSAzKSkgewogICRFUlJPUignIzI6IFdoZW4gdGhlIE9iamVjdCBjb25zdHJ1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",
|
||||
"commentary":"When the Object constructor is called with one argument value and\nthe value is a native ECMAScript object, do not create a new object but simply return value",
|
||||
"description":"The value is a Date object",
|
||||
"path":"TestCases/ch15/15.2/15.2.2/S15.2.2.1_A2_T5.js"
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"date":"2013-06-07","version":"ES5.1"}
|
||||
{"date":"2013-06-13","version":"ES5.1"}
|
Loading…
Reference in New Issue