mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
c4c76975f6
Subject: Rhino request URGENT Date: Thu, 02 Dec 1999 15:58:40 -0500 From: slobo@espialgroup.com To: Norris Boyd <norris@netscape.com> References: 1 , 2 Hello Norris In Rhino, the following script gives the error : "function does not always return a value" during the parsing phase. The script runs perfectly fine in Netscape 4.61. It is an urgent requirement. Many thanks in advance. Steven ///////////////////////////////////////////////////////SCRIPT BEGIN /////////////////////////////////////////////// function test (a) { this.arg = a; if (a>20) return; return this; } //print = alert; function joe() { a = new test (20); print (a.arg); a = new test (25); print (a.arg); } joe(); ///////////////////////////////////////////////////////SCRIPT END /////////////////////////////////////////////// |
||
---|---|---|
.. | ||
benchmarks | ||
js2/java | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |