summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/misc/error-undefined-message.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/misc/error-undefined-message.js')
-rw-r--r--js/src/tests/non262/misc/error-undefined-message.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/tests/non262/misc/error-undefined-message.js b/js/src/tests/non262/misc/error-undefined-message.js
new file mode 100644
index 0000000000..8a9202b8fd
--- /dev/null
+++ b/js/src/tests/non262/misc/error-undefined-message.js
@@ -0,0 +1,7 @@
+// Any copyright is dedicated to the Public Domain.
+// http://creativecommons.org/licenses/publicdomain/
+
+assertEq(new Error().hasOwnProperty('message'), false);
+assertEq(new Error(undefined).hasOwnProperty('message'), false);
+
+reportCompare(0, 0, 'ok');