summaryrefslogtreecommitdiffstats
path: root/toolkit/components/commandlines/test/unit/test_bug666224.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/commandlines/test/unit/test_bug666224.js')
-rw-r--r--toolkit/components/commandlines/test/unit/test_bug666224.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolkit/components/commandlines/test/unit/test_bug666224.js b/toolkit/components/commandlines/test/unit/test_bug666224.js
new file mode 100644
index 0000000000..acb162dd25
--- /dev/null
+++ b/toolkit/components/commandlines/test/unit/test_bug666224.js
@@ -0,0 +1,10 @@
+function run_test() {
+ var cmdLine = Cu.createCommandLine(
+ [],
+ null,
+ Ci.nsICommandLine.STATE_INITIAL_LAUNCH
+ );
+ try {
+ cmdLine.getArgument(cmdLine.length);
+ } catch (e) {}
+}