Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
norris%netscape.com c4c76975f6 Fix the following bug:
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  ///////////////////////////////////////////////
1999-12-03 00:04:46 +00:00
README/mozilla remove unused images 1999-10-20 00:15:50 +00:00
apache/gzip/src Add the source and Makefile for the new mod_gzip_content module. 1998-09-15 20:17:13 +00:00
build Adding smime wrapper- R: ducarroz 1999-12-01 23:22:25 +00:00
calendar updating license boilerplate 1999-11-02 06:13:48 +00:00
caps Fix crash seen by waterson. 1999-12-02 05:41:17 +00:00
cck This file used to fill in empty folders so ZIP will pick up the folder hiearchy 1999-12-02 21:02:54 +00:00
chrome Actually setting the fields in the chrome entry enumeration now. r=me 1999-12-01 08:55:35 +00:00
cmd updated license boilerplate to xPL v1.1 1999-11-02 22:43:10 +00:00
config Removing unused UNIX_LDAP define from the build. r=cls. 1999-12-02 02:34:39 +00:00
content Bug 20309. Use nsCAutoString. Kudos to buhr@stat.wisc.edu 1999-12-02 23:53:25 +00:00
db Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
dbm Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
directory Updated ldapjdk 4.05 1999-11-12 06:34:14 +00:00
docshell Fix a webshell leak! improper nsCOMPtr useage in DestroyChildren was causing us to leak 1999-12-02 23:46:00 +00:00
dom Fix bug 18636 java script security problem when accessing my.netscape.com/ 1999-12-02 23:56:25 +00:00
editor 18033: Editor changes to use the new nsISelectionController interface. 1999-12-02 21:47:30 +00:00
ef fix another XXX 1999-12-01 21:26:42 +00:00
embedding Added CommandStateChangeConstants 1999-12-02 22:49:27 +00:00
expat Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
extensions fix bug 20164, cookie viewer crashed on long cookies, r=andreas.otte 1999-12-02 14:23:28 +00:00
gc/boehm Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
gconfig updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
gfx if an alpha pixmap is there destroy it and not only in the case where we have alpha bits 1999-12-02 23:56:12 +00:00
grendel Added support for combobox and image 1999-11-29 00:44:34 +00:00
htmlparser various bug fixes (PDT+ and other); removed warnings. r=syd 1999-12-02 10:14:42 +00:00
include Fix for QNX-specific build bustage. QNX doesn't provide a prototype for random(). 1999-12-02 03:35:52 +00:00
intl Evolution of the CharsetConverterManager in order to pair the new Charset Menu. r=erik 1999-12-02 08:05:59 +00:00
java 20208 1999-12-02 23:20:29 +00:00
jpeg Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
js Fix the following bug: 1999-12-03 00:04:46 +00:00
js2/semantics Fixed MCL incompatibility 1999-11-20 04:34:42 +00:00
l10n updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
layout Forgot to add the idl file to the makefile 1999-12-02 22:36:34 +00:00
lib Fix the embedding stuff to no longer explicitly create an image manager, now that it is a service. r=neeti. 1999-11-24 03:57:32 +00:00
mailnews Updated to use new nsIMsgAccountManager interfaces 1999-12-02 23:53:30 +00:00
modules *cringe* Bug #14928 --> throw the switch for uri loading! With this turned on, all urls which are run through 1999-12-02 07:54:47 +00:00
msgsdk updating license boilerplate to xPL v1.1 1999-11-02 06:20:05 +00:00
nav-java updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
netwerk bug #13157 (r=valeski). Added support for HTTP/0.9 server responses. This fixes a whole class of bugs where CGI scripts were displaying blank pages because we just ignored the response :-( 1999-12-02 23:09:15 +00:00
network fix for 18078. r=mstoltz,warren 1999-11-30 00:32:43 +00:00
nsprpub Checking in fix for bug #20558 for sfraser. Calling pr_UnlockedFindLibrary() with a NULL fragment name not a good idea. sfraser and I both though he'd fixed this before but apparently the change was lost. 1999-12-02 22:25:17 +00:00
nunet updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
parser various bug fixes (PDT+ and other); removed warnings. r=syd 1999-12-02 10:14:42 +00:00
plugin/oji/MRJ Added support for Proxies in the MRJ Plugin via getProxyForURL. Reviewed 1999-11-13 00:37:48 +00:00
privacy updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
profile Fixing the invisible tree problem #18577. 1999-12-01 20:11:01 +00:00
rdf Bug 20309. Use nsCAutoString. Kudos to buhr@stat.wisc.edu 1999-12-02 23:53:25 +00:00
silentdl updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
string/obsolete fixed off-by-1 error in compare, and added ReplaceSubstring(). r=syd 1999-12-02 10:14:38 +00:00
suite fix pref xul and window size to look nicer. now the pref window is bigger and now the size is set in pref.xul. fixes #20244 among other bugs 1999-12-02 22:34:19 +00:00
sun-java updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
timer updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
tools Make regex for matching module names more general. r=mcafee 1999-11-30 00:56:04 +00:00
tripledb updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
uriloader fix leak of document bind info when uri loading is turned on. 1999-12-02 09:37:36 +00:00
view bug #20504: fix crash when printing. r=joki 1999-12-02 05:13:56 +00:00
wallet updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
webshell Fix a webshell leak! improper nsCOMPtr useage in DestroyChildren was causing us to leak 1999-12-02 23:46:00 +00:00
webtools special cased DUPLICATE in the make_options() sanity-checking code 1999-12-02 23:56:07 +00:00
widget add Mac implmenetation of nsIFontEnumerator r=erik 1999-12-02 23:27:16 +00:00
xpcom Fix tabs. 1999-12-02 21:45:50 +00:00
xpfc updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
xpfe fix pref xul and window size to look nicer. now the pref window is bigger and now the size is set in pref.xul. fixes #20244 among other bugs 1999-12-02 22:34:19 +00:00
xpinstall changed requested access permissions for accessing the Windows registry from a general access value of KEY_ALL_ACCESS to a more specific access that does not necessarily require admin previlidges. r=sgehani@netscape.com. This affects only windows. 1999-12-02 02:22:35 +00:00
.cvsignore ignore a.out as well 1999-04-10 21:22:55 +00:00
LEGAL Add Y2K disclaimer. 1999-07-06 23:00:05 +00:00
LICENSE new version of LICENSE; not part of the build 1999-10-06 02:14:51 +00:00
Makefile.in fix build bustage for travis. a=mscott 1999-11-30 00:07:03 +00:00
aclocal.m4 oops, forgot to include these files for libIDL detection 1999-04-10 00:54:58 +00:00
allmakefiles.sh Removing --disable-editor (and MOZ_EDITOR) from the build as the editor module now handles all of the text fields for Mozilla and using this option will result in a "non-working" browser (text fields are not editable). Bug #20369 1999-12-01 06:08:25 +00:00
client.mak backing out slamm's changes to use cvsco.pl; builds are breaking, not sure 1999-11-30 17:29:20 +00:00
client.mk Something goofy is up with tinderbox. Going back to 1.72. 1999-11-30 02:00:13 +00:00
configure Removing unused UNIX_LDAP define from the build. r=cls. 1999-12-02 02:34:39 +00:00
configure.in Removing unused UNIX_LDAP define from the build. r=cls. 1999-12-02 02:34:39 +00:00
makefile.win remove comment line to prevent build bustage. 1999-11-30 00:32:37 +00:00
nglayout.mac updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
nglayout.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mak updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00