Skip to content

Commit f1b1c00

Browse files
author
Fabrice Bellard
committed
update test262
1 parent 4d9a27c commit f1b1c00

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

TODO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ Optimization ideas:
6262
Test262o: 0/11262 errors, 463 excluded
6363
Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch)
6464

65-
Result: 46/79346 errors, 1617 excluded, 6754 skipped
66-
Test262 commit: 4b5d36ab6ef2f59d0a8902cd383762547a3a74c4
65+
Result: 48/79398 errors, 1637 excluded, 6771 skipped
66+
Test262 commit: 1e38cbeb1c878a352b55c3ebe03ee8eda74a33ed

test262.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ test262/test/staging/sm/RegExp/source.js
337337
test262/test/staging/sm/RegExp/escape.js
338338
# source directives are not standard yet
339339
test262/test/staging/sm/syntax/syntax-parsed-arrow-then-directive.js
340+
# returning "bound fn" as initialName for a function is permitted by the spec
341+
test262/test/staging/sm/Function/function-toString-builtin.js
340342

341343
[tests]
342344
# list test files or use config.testdir

test262_errors.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ test262/test/staging/sm/Function/arguments-parameter-shadowing.js:15: Test262Err
99
test262/test/staging/sm/Function/constructor-binding.js:12: Test262Error: Expected SameValue(«"function"», «"undefined"») to be true
1010
test262/test/staging/sm/Function/function-bind.js:14: Test262Error: Conforms to NativeFunction Syntax: "function bound unbound() {\n [native code]\n}"
1111
test262/test/staging/sm/Function/function-name-for.js:12: Test262Error: Expected SameValue(«""», «"forInHead"») to be true
12-
test262/test/staging/sm/Function/function-toString-builtin.js:14: Test262Error: Expected match to '/^\s*function\s*(get|set)?\s*(\w+|(?:'[^']*')|(?:"[^"]*")|\d+|(?:\[[^\]]+\]))?\s*\(\s*\)\s*\{\s*\[native code\]\s*\}\s*$/', Actual value 'function bound fn() {
13-
[native code]
14-
}' Expected SameValue(«null», «null») to be false
1512
test262/test/staging/sm/Function/implicit-this-in-parameter-expression.js:13: Test262Error: Expected SameValue(«[object Object]», «undefined») to be true
1613
test262/test/staging/sm/Function/invalid-parameter-list.js:35: Error: Assertion failed: expected exception SyntaxError, no exception thrown
1714
test262/test/staging/sm/RegExp/constructor-ordering-2.js:15: Test262Error: Expected SameValue(«false», «true») to be true
18-
test262/test/staging/sm/RegExp/regress-613820-1.js:13: Test262Error: Expected SameValue(«"aaa"», «"aa"») to be true
19-
test262/test/staging/sm/RegExp/regress-613820-2.js:13: Test262Error: Expected SameValue(«"f"», «undefined») to be true
20-
test262/test/staging/sm/RegExp/regress-613820-3.js:13: Test262Error: Expected SameValue(«"aab"», «"aa"») to be true
15+
test262/test/staging/sm/RegExp/regress-613820-1.js:12: Test262Error: Actual [aaa, aa, a] and expected [aa, a, a] should have the same contents.
16+
test262/test/staging/sm/RegExp/regress-613820-1.js:12: strict mode: Test262Error: Actual [aaa, aa, a] and expected [aa, a, a] should have the same contents.
17+
test262/test/staging/sm/RegExp/regress-613820-2.js:12: Test262Error: Actual [foobar, f, o, o, b, a, r] and expected [foobar, undefined, undefined, undefined, b, a, r] should have the same contents.
18+
test262/test/staging/sm/RegExp/regress-613820-2.js:12: strict mode: Test262Error: Actual [foobar, f, o, o, b, a, r] and expected [foobar, undefined, undefined, undefined, b, a, r] should have the same contents.
19+
test262/test/staging/sm/RegExp/regress-613820-3.js:12: Test262Error: Actual [aab, a, undefined, ab] and expected [aa, undefined, a, undefined] should have the same contents.
20+
test262/test/staging/sm/RegExp/regress-613820-3.js:12: strict mode: Test262Error: Actual [aab, a, undefined, ab] and expected [aa, undefined, a, undefined] should have the same contents.
2121
test262/test/staging/sm/TypedArray/constructor-buffer-sequence.js:73: Error: Assertion failed: expected exception ExpectedError, got Error: Poisoned Value
2222
test262/test/staging/sm/TypedArray/prototype-constructor-identity.js:17: Test262Error: Expected SameValue(«2», «6») to be true
2323
test262/test/staging/sm/TypedArray/set-detached-bigint.js:27: Error: Assertion failed: expected exception SyntaxError, got RangeError: invalid array length

tests/test262.patch

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ index b397be0..c197ddc 100644
7171
return result;
7272
}
7373
diff --git a/harness/sm/non262.js b/harness/sm/non262.js
74-
index c1829e3..3a3ee27 100644
74+
index 89df923..79ded15 100644
7575
--- a/harness/sm/non262.js
7676
+++ b/harness/sm/non262.js
77-
@@ -41,8 +41,6 @@ globalThis.createNewGlobal = function() {
77+
@@ -34,8 +34,6 @@ globalThis.createNewGlobal = function() {
7878
return $262.createRealm().global
7979
}
8080

@@ -83,15 +83,8 @@ index c1829e3..3a3ee27 100644
8383
function assertEq(...args) {
8484
assert.sameValue(...args)
8585
}
86-
@@ -71,4 +69,4 @@ if (globalThis.createExternalArrayBuffer === undefined) {
87-
if (globalThis.enableGeckoProfilingWithSlowAssertions === undefined) {
88-
globalThis.enableGeckoProfilingWithSlowAssertions = globalThis.enableGeckoProfiling =
89-
globalThis.disableGeckoProfiling = () => {}
90-
-}
91-
\ No newline at end of file
92-
+}
9386
diff --git a/test/staging/sm/extensions/regress-469625-01.js b/test/staging/sm/extensions/regress-469625-01.js
94-
index 5b62aeb..da07aae 100644
87+
index 81f84fc..4652002 100644
9588
--- a/test/staging/sm/extensions/regress-469625-01.js
9689
+++ b/test/staging/sm/extensions/regress-469625-01.js
9790
@@ -14,8 +14,7 @@ esid: pending
@@ -104,17 +97,17 @@ index 5b62aeb..da07aae 100644
10497

10598

10699
//-----------------------------------------------------------------------------
107-
@@ -27,9 +26,6 @@ function test()
108-
printBugNumber(BUGNUMBER);
109-
printStatus (summary);
110-
100+
@@ -24,9 +23,6 @@ test();
101+
102+
function test()
103+
{
111104
- expect = 'TypeError: [].__proto__ is not a function';
112105
-
113106
-
114107
Array.prototype.__proto__ = function () { return 3; };
115108

116109
try
117-
@@ -38,8 +34,10 @@ function test()
110+
@@ -35,8 +31,10 @@ function test()
118111
}
119112
catch(ex)
120113
{

0 commit comments

Comments
 (0)