Skip to content

Commit dfc254a

Browse files
author
Fabrice Bellard
committed
update tests
1 parent 3d92a9d commit dfc254a

File tree

4 files changed

+47
-10
lines changed

4 files changed

+47
-10
lines changed

TODO

Lines changed: 1 addition & 1 deletion
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: 58/79349 errors, 1610 excluded, 6649 skipped
65+
Result: 46/79341 errors, 1618 excluded, 6649 skipped
6666
Test262 commit: 27622d764767dcb3778784884022c2c7de5769b8

test262.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@ test262/test/staging/sm/Function/function-toString-builtin-name.js
321321
test262/test/staging/sm/extensions/arguments-property-access-in-function.js
322322
test262/test/staging/sm/extensions/function-caller-skips-eval-frames.js
323323
test262/test/staging/sm/extensions/function-properties.js
324+
test262/test/staging/sm/regress/regress-577648-1.js
325+
test262/test/staging/sm/regress/regress-577648-2.js
326+
test262/test/staging/sm/regress/regress-584355.js
327+
test262/test/staging/sm/regress/regress-586482-1.js
328+
test262/test/staging/sm/regress/regress-586482-2.js
329+
test262/test/staging/sm/regress/regress-586482-3.js
330+
test262/test/staging/sm/regress/regress-586482-4.js
331+
test262/test/staging/sm/regress/regress-699682.js
332+
324333
# RegExp toSource not fully compliant
325334
test262/test/staging/sm/RegExp/toString.js
326335
test262/test/staging/sm/RegExp/source.js

test262_errors.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ test262/test/staging/sm/class/superPropOrdering.js:83: Error: Assertion failed:
3333
test262/test/staging/sm/expressions/short-circuit-compound-assignment-const.js:97: TypeError: 'a' is read-only
3434
test262/test/staging/sm/expressions/short-circuit-compound-assignment-tdz.js:23: Error: Assertion failed: expected exception ReferenceError, got TypeError: 'a' is read-only
3535
test262/test/staging/sm/extensions/TypedArray-set-object-funky-length-detaches.js:55: RangeError: invalid array length
36-
test262/test/staging/sm/extensions/regress-469625-01.js:16: Test262Error: TM: Array prototype and expression closures Expected SameValue(«"TypeError: [].__proto__ is not a function"», «"TypeError: not a function"») to be true
3736
test262/test/staging/sm/generators/syntax.js:30: Error: Assertion failed: expected SyntaxError, but no exception thrown - function* g() { (function* yield() {}); }
3837
test262/test/staging/sm/lexical-environment/block-scoped-functions-annex-b-arguments.js:14: Test262Error: Expected SameValue(«"object"», «"function"») to be true
3938
test262/test/staging/sm/lexical-environment/block-scoped-functions-annex-b-eval.js:12: Test262Error: Expected SameValue(«"outer-gouter-geval-gtruefalseq"», «"outer-geval-gwith-gtruefalseq"») to be true
@@ -42,15 +41,7 @@ test262/test/staging/sm/lexical-environment/block-scoped-functions-annex-b-notap
4241
test262/test/staging/sm/lexical-environment/block-scoped-functions-deprecated-redecl.js:23: Test262Error: Expected SameValue(«3», «4») to be true
4342
test262/test/staging/sm/lexical-environment/var-in-catch-body-annex-b-eval.js:17: Test262Error: Expected SameValue(«"g"», «"global-x"») to be true
4443
test262/test/staging/sm/object/defineProperties-order.js:14: Test262Error: Expected SameValue(«"ownKeys,getOwnPropertyDescriptor,getOwnPropertyDescriptor,get,get"», «"ownKeys,getOwnPropertyDescriptor,get,getOwnPropertyDescriptor,get"») to be true
45-
test262/test/staging/sm/regress/regress-577648-1.js:21: Test262Error: 1 Expected SameValue(«true», «false») to be true
46-
test262/test/staging/sm/regress/regress-577648-2.js:14: Test262Error: Expected SameValue(«true», «false») to be true
47-
test262/test/staging/sm/regress/regress-584355.js:12: Test262Error: Expected SameValue(«"function f () { ff (); }"», «"undefined"») to be true
48-
test262/test/staging/sm/regress/regress-586482-1.js:19: Test262Error: ok Expected SameValue(«true», «false») to be true
49-
test262/test/staging/sm/regress/regress-586482-2.js:19: Test262Error: ok Expected SameValue(«true», «false») to be true
50-
test262/test/staging/sm/regress/regress-586482-3.js:18: Test262Error: ok Expected SameValue(«true», «false») to be true
51-
test262/test/staging/sm/regress/regress-586482-4.js:14: Test262Error: ok Expected SameValue(«function() { this.f(); }», «undefined») to be true
5244
test262/test/staging/sm/regress/regress-602621.js:14: Test262Error: function sub-statement must override arguments Expected SameValue(«"function"», «"object"») to be true
53-
test262/test/staging/sm/regress/regress-699682.js:15: Test262Error: Expected SameValue(«false», «true») to be true
5445
test262/test/staging/sm/regress/regress-1383630.js:30: Error: Assertion failed: expected exception TypeError, no exception thrown
5546
test262/test/staging/sm/statements/arrow-function-in-for-statement-head.js:15: Test262Error: expected syntax error, got Error: didn't throw Expected SameValue(«false», «true») to be true
5647
test262/test/staging/sm/statements/regress-642975.js:14: Test262Error: Expected SameValue(«undefined», «"y"») to be true

tests/test262.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,43 @@ index c1829e3..3a3ee27 100644
9090
-}
9191
\ No newline at end of file
9292
+}
93+
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
95+
--- a/test/staging/sm/extensions/regress-469625-01.js
96+
+++ b/test/staging/sm/extensions/regress-469625-01.js
97+
@@ -14,8 +14,7 @@ esid: pending
98+
//-----------------------------------------------------------------------------
99+
var BUGNUMBER = 469625;
100+
var summary = 'TM: Array prototype and expression closures';
101+
-var actual = '';
102+
-var expect = '';
103+
+var actual = null;
104+
105+
106+
//-----------------------------------------------------------------------------
107+
@@ -27,9 +26,6 @@ function test()
108+
printBugNumber(BUGNUMBER);
109+
printStatus (summary);
110+
111+
- expect = 'TypeError: [].__proto__ is not a function';
112+
-
113+
-
114+
Array.prototype.__proto__ = function () { return 3; };
115+
116+
try
117+
@@ -38,8 +34,10 @@ function test()
118+
}
119+
catch(ex)
120+
{
121+
- print(actual = ex + '');
122+
+ print(ex + '');
123+
+ actual = ex;
124+
}
125+
126+
- assert.sameValue(expect, actual, summary);
127+
+ assert.sameValue(actual instanceof TypeError, true);
128+
+ assert.sameValue(actual.message.includes("not a function"), true);
129+
}
93130
diff --git a/test/staging/sm/misc/new-with-non-constructor.js b/test/staging/sm/misc/new-with-non-constructor.js
94131
index 18c2f0c..f9aa209 100644
95132
--- a/test/staging/sm/misc/new-with-non-constructor.js

0 commit comments

Comments
 (0)