Add regression test.
git-svn-id: svn://10.0.0.236/trunk@247326 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7f4485c9b5
commit
aa05600b51
19
mozilla/js/rhino/testsrc/jstests/420012.jstest
Normal file
19
mozilla/js/rhino/testsrc/jstests/420012.jstest
Normal file
@ -0,0 +1,19 @@
|
||||
var o = new Object;
|
||||
o.setX = function (id) {
|
||||
this.oid = id;
|
||||
}
|
||||
|
||||
function setX(n) {
|
||||
if (n == "" || n == null)
|
||||
n = 0;
|
||||
|
||||
var s = new Object;
|
||||
s.xyz = n;
|
||||
|
||||
if (s != null) {
|
||||
o.setX(s.xyz);
|
||||
}
|
||||
}
|
||||
|
||||
setX('x');
|
||||
"success";
|
||||
Loading…
x
Reference in New Issue
Block a user