Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Unified Diff: test/mjsunit/apply.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/apply.js
diff --git a/test/mjsunit/apply.js b/test/mjsunit/apply.js
index 413ee937c6638cc7d30e2bf75e755a3a89a27d2a..22e50a4f4846e1f64808a590b5c889b8c1207f22 100644
--- a/test/mjsunit/apply.js
+++ b/test/mjsunit/apply.js
@@ -142,10 +142,12 @@ var primes = new Array(0);
function isPrime(possible_prime) {
for (var d = 0; d < primes.length; d++) {
var p = primes[d];
- if (possible_prime % p == 0)
+ if (possible_prime % p == 0) {
return false;
- if (p * p > possible_prime)
+ }
+ if (p * p > possible_prime) {
return true;
+ }
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698