Chromium Code Reviews| 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"); |