From aa05600b51a764741184bec25601112fe28f044f Mon Sep 17 00:00:00 2001 From: "nboyd%atg.com" Date: Fri, 7 Mar 2008 20:17:50 +0000 Subject: [PATCH] Add regression test. git-svn-id: svn://10.0.0.236/trunk@247326 18797224-902f-48f8-a5cc-f745e15eee43 --- .../js/rhino/testsrc/jstests/420012.jstest | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mozilla/js/rhino/testsrc/jstests/420012.jstest diff --git a/mozilla/js/rhino/testsrc/jstests/420012.jstest b/mozilla/js/rhino/testsrc/jstests/420012.jstest new file mode 100644 index 00000000000..e1c87fb4943 --- /dev/null +++ b/mozilla/js/rhino/testsrc/jstests/420012.jstest @@ -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";