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

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: Address review comments 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
« no previous file with comments | « test/mjsunit/compiler/literals.js ('k') | test/mjsunit/compiler/objectliterals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b41ea5b9d3e78d14d73eef4d36ceff344003e86f 100644
--- a/test/mjsunit/compiler/null-compare.js
+++ b/test/mjsunit/compiler/null-compare.js
@@ -26,7 +26,11 @@
// 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;
+ } else {
+ return false;
+ }
}
assertTrue(IsNull(null), "null == null");
@@ -35,7 +39,11 @@ assertFalse(IsNull(42), "42 != null");
function IsNullStrict(x) {
- if (x === null) return true; else return false;
+ if (x === null) {
+ return true;
+ } else {
+ return false;
+ }
}
assertTrue(IsNullStrict(null), "null === null");
« no previous file with comments | « test/mjsunit/compiler/literals.js ('k') | test/mjsunit/compiler/objectliterals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698