js/src/tests/ecma_3/FunExpr/fe-001.js

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

mercurial