| 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");
|
|
|