| 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
| 2 | * |
| 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 6 | |
| 7 | var gTestfile = 'fe-001.js'; |
| 8 | |
| 9 | if (1) function f() {return 1;} |
| 10 | if (0) function f() {return 0;} |
| 11 | |
| 12 | function test() |
| 13 | { |
| 14 | enterFunc ("test"); |
| 15 | |
| 16 | printStatus ("Function Expression Statements basic test."); |
| 17 | |
| 18 | reportCompare (1, f(), "Both functions were defined."); |
| 19 | |
| 20 | exitFunc ("test"); |
| 21 | } |
| 22 | |
| 23 | test(); |