Debian Codegraph @

rhino/testsrc/jstests/420012.jstest

raw
1 // This Source Code Form is subject to the terms of the Mozilla Public
2 // License, v. 2.0. If a copy of the MPL was not distributed with this
3 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 var o = new Object;
6 o.setX = function (id) {
7 this.oid = id;
8 }
9
10 function setX(n) {
11 if (n == "" || n == null)
12 n = 0;
13
14 var s = new Object;
15 s.xyz = n;
16
17 if (s != null) {
18 o.setX(s.xyz);
19 }
20 }
21
22 setX('x');
23 "success";