summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/js-primes.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/js/js-primes.html b/test/js/js-primes.html
index 876694a4c..f21921eb4 100644
--- a/test/js/js-primes.html
+++ b/test/js/js-primes.html
@@ -24,6 +24,9 @@ function is_prime(n)
return false;
}
}
+ if (n === 1) {
+ return false;
+ }
return true;
}