summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-04-22 19:16:19 +0200
committerFabrice Bellard <fabrice@bellard.org>2025-04-22 19:16:19 +0200
commit8e9e8e86c555e2d142826a73ae6b86939b26613d (patch)
tree9bc66e71c767e296bf61d53c6932738e127d65f9 /tests
parent87cf1b0567b9d581e8a5247ea83c66bfdcb2eca8 (diff)
downloadquickjs-8e9e8e86c555e2d142826a73ae6b86939b26613d.tar.gz
quickjs-8e9e8e86c555e2d142826a73ae6b86939b26613d.zip
update tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test262.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test262.patch b/tests/test262.patch
index 3047751..b6f4aa5 100644
--- a/tests/test262.patch
+++ b/tests/test262.patch
@@ -90,3 +90,16 @@ index c1829e3..3a3ee27 100644
-}
\ No newline at end of file
+}
+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
++++ b/test/staging/sm/misc/new-with-non-constructor.js
+@@ -16,7 +16,7 @@ function checkConstruct(thing) {
+ new thing();
+ assert.sameValue(0, 1, "not reached " + thing);
+ } catch (e) {
+- assert.sameValue(e.message.includes(" is not a constructor") ||
++ assert.sameValue(e.message.includes("not a constructor") ||
+ e.message === "Function.prototype.toString called on incompatible object", true);
+ }
+ }