Граф коммитов

3981 Коммитов

Автор SHA1 Сообщение Дата
brendan%mozilla.org 95ed51d07d Remove Call constructor (118732) and fix old bug in Function where it failed to convert args to strings (118849; both r=timeless, sr=shaver). 2002-01-10 08:51:01 +00:00
seawood%netscape.com 9623dca0c3 Link jsd into application in a "static" build.
Thanks to Robert Ginda <rginda@netscape.com> for the patch.
Bug #118784 r=cls
2002-01-10 08:47:01 +00:00
pschwartau%netscape.com ea8826f7ad Improving comments. 2002-01-09 19:53:02 +00:00
bryner%netscape.com d7b029bc06 Bug 117276 - regression on gcc 2.95.x debug builds. Since we don't
understand exactly what the problem is here, and it does not seem to
happen on gcc 2.96, and 2.95 doesn't have the alias optimizations that
called for the new code in the first place, just make 2.95 use the old
code.  r=timeless, sr=brendan.
2002-01-09 19:23:37 +00:00
nboyd%atg.com fb444636a5 Fix bug 118636: Date format 2002-01-09 15:21:31 +00:00
nboyd%atg.com 57f49f4ee9 Fix bug:
We have found a problem in string.replace() when replacing a regular
expression with a dollar sign. The following code works right when the
replacement string does not contain "$":

$ java -jar js.jar
js> var re = new RegExp("%%%");
js> var price = "%%% 1.99";
js> price.replace(re, "USD");
USD 1.99
js> price.replace(re, "$");
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
         at
org.mozilla.javascript.regexp.ReplaceData.interpretDollar(RegExpImpl.java:40 0)
         at
org.mozilla.javascript.regexp.ReplaceData.findReplen(RegExpImpl.java:502)
         at
org.mozilla.javascript.regexp.RegExpImpl.replace(RegExpImpl.java:116)
         at
org.mozilla.javascript.NativeString.execMethod(NativeString.java:266)
         at org.mozilla.javascript.IdFunction.call(IdFunction.java:78)
         at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1222)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
         at
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:68)
         at
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:59)
         at org.mozilla.javascript.Context.evaluateReader(Context.java:773)
         at
org.mozilla.javascript.tools.shell.Main.evaluateReader(Main.java:312)
         at
org.mozilla.javascript.tools.shell.Main.processSource(Main.java:219)
         at org.mozilla.javascript.tools.shell.Main.exec(Main.java:106)
         at org.mozilla.javascript.tools.shell.Main.main(Main.java:68)
2002-01-09 15:20:48 +00:00
pschwartau%netscape.com f12fb1d44e Initial add. Regression test for bug 118849. 2002-01-09 01:09:15 +00:00
nboyd%atg.com 57bdef218d Fix doc bug. 2002-01-08 20:11:53 +00:00
dbaron%fas.harvard.edu ab1ac5cb06 Don't use C++ comments in C files. 2002-01-08 02:29:11 +00:00
pschwartau%netscape.com cde8c3d21b Modified test to take account of the change in SpiderMonkey date format (bug 118266) 2002-01-08 02:23:26 +00:00
alecf%netscape.com 72507557e8 C++ side of fix for bug 100212 - move consumers of nsIFile.URL into nsIIOService. r=dougt, sr=darin 2002-01-08 01:31:25 +00:00
brendan%mozilla.org fbd58db1f2 Checking in patch written by balleysson@bigfoot.com based on tenthumbs@cybernex.net's sketch, to avoid mallocs in js_strtod (115627, r=khanson, sr=me). 2002-01-07 23:42:25 +00:00
brendan%mozilla.org 3b402ef3f8 Group date and time fields in toString's result so as to work with PR_ParseTimeString (118266, r=khanson, sr=shaver). 2002-01-07 11:09:04 +00:00
rginda%netscape.com f85a6b8d87 bug 117907, patch=joerg.schaible@gmx.de (J�rg Schaible), r=me
add release build option to jsdb.mak
2002-01-04 19:24:14 +00:00
nboyd%atg.com 73ab04ecba Update implemenation version date. 2002-01-04 14:04:42 +00:00
nboyd%atg.com f30c2d3e28 Fix bug reported by rathje40@yahoo.com
We are converting from spidermonkey to rhino and it appears that the
name property for the constructor function returns "constructor" for
all builtin types.  Spidermonkey would return "Date" or "Array" or
whatever.  Is there a workaround?  This code needs to work with both
interpreters.

Here is an example of the rhino behavior:

js> var i=new Date;
js> i.constructor.name
constructor
js> Date.name
constructor
js> function bob(){}
js> bob.name
bob
js> var i = new Array();
js> i.constructor.name
constructor
js>
2002-01-04 14:04:01 +00:00
nboyd%atg.com fee1adf47b Remove override that is duplicate of superclass. 2002-01-04 14:02:36 +00:00
nboyd%atg.com 49a33e0718 Print implementation version when starting up interactive mode. 2002-01-04 14:02:02 +00:00
brendan%mozilla.org b8913566f5 Null pointer defense in FUN_CALLER fun_getProperty case (117307, r/sr skipped, trivial). 2002-01-01 21:12:21 +00:00
brendan%mozilla.org b77949ac45 Fix old bug introduced by rev 3.2, where this() crashes due to uninitialized obj register (116228, r=timeless, sr=shaver). 2001-12-27 08:47:33 +00:00
timeless%mac.com 711739d601 Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +00:00
igor%mir2.org 2942f53359 Use Vector.elementAt instead of Vector.getfor jdk 1.1 complience 2001-12-20 22:05:42 +00:00
igor%mir2.org 04393fc2b7 Fixes to allow to use jikes to compile and produce less warnings:
1. Replace catch(Exception) by catch(RuntimeException) when only RuntimeException can be throws

2. Make sure that inner classes does not use the same name for parameters as parent scope, see  http://domino.watson.ibm.com/syssftpr/JavaTech/Jikes.nsf/Named/SunQuery8
2001-12-20 21:15:02 +00:00
dougt%netscape.com 592121caae fixing dumbass error. This could should have returned null if obsoleteManager was null, not the inverse. r=jband@netscape.com 2001-12-20 00:26:28 +00:00
nboyd%atg.com 7d221ec600 Added comment about bug 115717. 2001-12-19 15:31:56 +00:00
brendan%mozilla.org 1b261555c1 Don't double-drop a property when strict-warning about duplicate formals (115436, r=khanson, sr=jband). 2001-12-19 02:10:26 +00:00
beard%netscape.com 0d07f28739 fix for bug #115545. r=sdagley, sr=sfraser 2001-12-19 00:23:05 +00:00
dougt%netscape.com 9a75bc4b8e nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org
2001-12-19 00:12:41 +00:00
seawood%netscape.com 874c54280c Landing the rest of the win32 gmake changes:
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup

Bug #58981 r=mcafee
2001-12-18 09:14:29 +00:00
pschwartau%netscape.com 31ce82673c Updating bug number reference in test. The original bug has outgrown. 2001-12-18 01:23:15 +00:00
jaggernaut%netscape.com 2df17e0579 Remove timer from REQUIRES, the makefile.win edition 2001-12-16 18:08:20 +00:00
pavlov%netscape.com 5cd1b8e131 bug 78611. New XP threadsafe timer implementation. r=dougt sr=brendan 2001-12-16 06:13:17 +00:00
seawood%netscape.com 3738d752bc Make OS/2 use the win32 build changes and finish LIB_PREFIX substitution.
Thanks to Javier Pedemonte (pedemont@us.ibm.com) for the patch.
Bug #58981 r=cls
2001-12-14 23:49:04 +00:00
nboyd%atg.com c583d776d0 Fix formatting. 2001-12-13 15:27:16 +00:00
sfraser%netscape.com 8b30bb8c05 Fix bug 114915 -- app not starting up in Mac opt builds. Work around a CodeWarrior optimizer bug by bumping down the optimization level for the optimized target. r=brendan, sr=shaver, a=Roto-rooter 2001-12-13 07:11:28 +00:00
brendan%mozilla.org eb8a7d1267 Long ago, mccabe copied the principals setting code in Function from late to early in the function (should've moved, but no one noticed); last month, I fixed bug 90546 in the original site but not in the copy; this change eliminates the duplication, moving the fix up to the copy's site (90546, r=jst, sr=jband, a=chofmann). 2001-12-13 00:27:20 +00:00
nboyd%atg.com e5934f2287 Fix bug 114491: if (true) function f(){}() 2001-12-12 14:16:57 +00:00
brendan%mozilla.org 30d6bf4ad3 Fix try/finally and try/guarded-catches/finally hard cases (104077, r=jband, sr=shaver). 2001-12-12 05:00:29 +00:00
brendan%mozilla.org f659593d14 Checking in rogerl@netscape.com's patch for bug 100199 (r=rginda, sr=me). 2001-12-12 04:27:50 +00:00
nboyd%atg.com 9fa51abca7 Fix bug 114493: "3"[5](); 2001-12-11 14:16:13 +00:00
nboyd%atg.com 31114154bb Fix memory leak of class names--reset every time we get a new ClassLoader. 2001-12-11 14:13:55 +00:00
ccarlen%netscape.com de865879b2 Bug 98349 - Convert Mac build to CW7 and XML projects. Removing obsolete .mcp files. r=pink/sr=sfraser 2001-12-11 05:45:45 +00:00
ccarlen%netscape.com 31d6aca7e7 Bug 98349 - Convert Mac build to CW7 and XML projects. Removing obsolete .mcp files. r=pink/sr=sfraser 2001-12-11 05:10:45 +00:00
pschwartau%netscape.com 7728370660 Initial add. Regression test for bug 114493. 2001-12-11 01:59:58 +00:00
pschwartau%netscape.com d0b367fcca Initial add. Regression test for bug 114491. 2001-12-11 01:59:22 +00:00
ccarlen%netscape.com 773577e3b8 Adding new files for conversion to CW7 and XML project files. Bug 98349 r=pink/sr=sfraser. 2001-12-10 21:32:41 +00:00
ccarlen%netscape.com d360173601 Adding new files for conversion to CW7 and XML project files. Bug 98349 r=pink/sr=sfraser. 2001-12-10 20:42:22 +00:00
pschwartau%netscape.com 6db0021972 Adding new cases to test 2001-12-10 00:43:13 +00:00
dbaron%fas.harvard.edu 40db04942f Prevent XPCReadableJSStringWrapper from having a null buffer handle. b=112496 r=shaver, jag sr=jst 2001-12-08 22:49:05 +00:00
pschwartau%netscape.com 7e34a351aa Adding one more case to test 2001-12-08 03:29:52 +00:00