summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/es6module_throws.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/xpconnect/tests/unit/es6module_throws.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/es6module_throws.js b/js/xpconnect/tests/unit/es6module_throws.js
new file mode 100644
index 0000000000..c3ca94b6eb
--- /dev/null
+++ b/js/xpconnect/tests/unit/es6module_throws.js
@@ -0,0 +1,4 @@
+function throwFunction() {
+ throw new Error("Failing with error foobar");
+}
+throwFunction();