summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-05-24 13:26:36 +0200
committerFabrice Bellard <fabrice@bellard.org>2025-05-24 13:26:36 +0200
commitdfc254af513d6b7ca29616444728a43ffd7cb192 (patch)
treeab40a4be794503101b0fcee17877aa80074ed429 /tests
parent3d92a9d30cbb43fc0685c44fc3fb9727a2b4be7c (diff)
downloadquickjs-dfc254af513d6b7ca29616444728a43ffd7cb192.tar.gz
quickjs-dfc254af513d6b7ca29616444728a43ffd7cb192.zip
update tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test262.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/test262.patch b/tests/test262.patch
index b6f4aa5..4ed0afb 100644
--- a/tests/test262.patch
+++ b/tests/test262.patch
@@ -90,6 +90,43 @@ index c1829e3..3a3ee27 100644
-}
\ No newline at end of file
+}
+diff --git a/test/staging/sm/extensions/regress-469625-01.js b/test/staging/sm/extensions/regress-469625-01.js
+index 5b62aeb..da07aae 100644
+--- a/test/staging/sm/extensions/regress-469625-01.js
++++ b/test/staging/sm/extensions/regress-469625-01.js
+@@ -14,8 +14,7 @@ esid: pending
+ //-----------------------------------------------------------------------------
+ var BUGNUMBER = 469625;
+ var summary = 'TM: Array prototype and expression closures';
+-var actual = '';
+-var expect = '';
++var actual = null;
+
+
+ //-----------------------------------------------------------------------------
+@@ -27,9 +26,6 @@ function test()
+ printBugNumber(BUGNUMBER);
+ printStatus (summary);
+
+- expect = 'TypeError: [].__proto__ is not a function';
+-
+-
+ Array.prototype.__proto__ = function () { return 3; };
+
+ try
+@@ -38,8 +34,10 @@ function test()
+ }
+ catch(ex)
+ {
+- print(actual = ex + '');
++ print(ex + '');
++ actual = ex;
+ }
+
+- assert.sameValue(expect, actual, summary);
++ assert.sameValue(actual instanceof TypeError, true);
++ assert.sameValue(actual.message.includes("not a function"), true);
+ }
diff --git a/test/staging/sm/misc/new-with-non-constructor.js b/test/staging/sm/misc/new-with-non-constructor.js
index 18c2f0c..f9aa209 100644
--- a/test/staging/sm/misc/new-with-non-constructor.js