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

Unified Diff: test/mjsunit/compiler/null-compare.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/compiler/null-compare.js
diff --git a/test/mjsunit/compiler/null-compare.js b/test/mjsunit/compiler/null-compare.js
index e01b555ad891b9c7bdb42d0d18f85f1acd4090dc..a2fda8217e4b718f8861b0bbd65028d4d738416a 100644
--- a/test/mjsunit/compiler/null-compare.js
+++ b/test/mjsunit/compiler/null-compare.js
@@ -26,7 +26,8 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
function IsNull(x) {
- if (x == null) return true; else return false;
+ if (x == null) { return true;
Rico 2011/12/08 10:24:37 this did not get much better :-)
+ } else return false;
}
assertTrue(IsNull(null), "null == null");
@@ -35,7 +36,8 @@ assertFalse(IsNull(42), "42 != null");
function IsNullStrict(x) {
- if (x === null) return true; else return false;
+ if (x === null) { return true;
Rico 2011/12/08 10:24:37 neither did this
+ } else return false;
}
assertTrue(IsNullStrict(null), "null === null");

Powered by Google App Engine
This is Rietveld 408576698