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

4107 Коммитов

Автор SHA1 Сообщение Дата
nboyd%atg.com 72599bbc98 Change version to 1.5R4pre. 2002-02-04 15:26:31 +00:00
jband%netscape.com bba4a3eea4 unbust XPCONNECT_STANDALONE build. No change to default build. bug 121438. rs=jband. 2002-02-03 20:05:22 +00:00
pschwartau%netscape.com 377ad0431c Initial add. Regression test for bug 123002. 2002-02-02 02:03:43 +00:00
seawood%netscape.com 6f66239aa4 Do not place the .res file inthe srcdir 2002-02-01 04:50:32 +00:00
igor%mir2.org 6552a1a653 Use heapsort instead of qsort for Array.sort to follow JS for reasons described in http://bugzilla.mozilla.org/show_bug.cgi?id=99120 2002-01-31 10:08:17 +00:00
brendan%mozilla.org 885a79c2d9 Fix for(i in null) and for(i in undefined) to error per ECMA, rather than iterating zero times (121744, r=khanson, sr=shaver). 2002-01-31 07:30:05 +00:00
rginda%netscape.com 5c6b2bdff4 changing a string constant, comenting out a DEBUG_rginda
use more descriptive url when compiling prettyprint changes
2002-01-31 00:37:28 +00:00
pschwartau%netscape.com 95a2b2d215 Initial add. Regression test for bug 121744. 2002-01-30 21:57:28 +00:00
sfraser%netscape.com d285f8f560 Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson 2002-01-30 21:14:20 +00:00
rginda%netscape.com f2a28a8722 quiet bogus "potentially unused" warnings, see bug 121178, sr=brendan 2002-01-30 08:37:57 +00:00
igor%mir2.org 406905cdda Stricter enter/exit: enter performs sanity checks on supplied Context and the exit requires previous enter. 2002-01-29 22:58:22 +00:00
dougt%netscape.com 894fdcfaaf 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com
2002-01-29 21:22:13 +00:00
igor%mir2.org e93c4e4150 Few Native* classes are made package private and final. They had been public only for implementation reasons. 2002-01-29 18:40:13 +00:00
igor%mir2.org 1e8ddbb80c Use ScriptRuntime.toString(double) to convert double to string. Easier to follow version of getElem/setElem 2002-01-29 09:44:24 +00:00
rginda%netscape.com 6b0d0b7fd3 bug 121318, sr=brendan,r=jst, "Venkman should disable the target window when stopped at a breakpoint".
implement the jsdIContext interface.
create only one jsdValue wrapper per unique jsval.
add executionContext property to jsdIStackFrame.
add enumerateContexts to jsdIDebuggerService.
add jsdIContextEnumerator interface.
2002-01-29 08:32:23 +00:00
rginda%netscape.com ad95811395 fixing os/2 bustage, false vs PR_FALSE mixup 2002-01-29 07:20:59 +00:00
rginda%netscape.com 2a5c47b883 bug 121178, r=jst,sr=brendan, "jsdIStackFrame::eval signature needs to be changed"
return exception from jsdService::Eval if one occurs.
2002-01-29 06:15:58 +00:00
rginda%netscape.com 1fbc1826c1 bug 121192, sr=brendan,r=jst, "Add proper errorHook and debugHook to jsdIDebuggerService"
adds jsdIDebugHook interface, change the meaning of jsdIErrorHook.
error hook is called when an error occurs, and is given information about the error report.
debug hook is called when/if the error hook returns false, and is given information about the ececution state.
2002-01-29 05:56:02 +00:00
nboyd%atg.com d70a26e80a Update implementation version. 2002-01-28 00:52:12 +00:00
brendan%mozilla.org 2e06d029c9 Checking in rogerl's fix for double-reports of compile-time errors (120197, r=brendan, sr=shaver). 2002-01-27 04:42:37 +00:00
nboyd%atg.com 17eefafc18 Clean up formatting. 2002-01-26 20:07:49 +00:00
nboyd%atg.com 42673b55be Fix bug 121790 2002-01-26 19:15:06 +00:00
nboyd%atg.com cc4e785a45 Fix formatting 2002-01-26 19:13:22 +00:00
pschwartau%netscape.com b7da12f224 Improving readablity. 2002-01-25 23:52:24 +00:00
pschwartau%netscape.com 9d200e2695 Improving readability. 2002-01-25 20:37:37 +00:00
pschwartau%netscape.com 82fd20a6f3 Improving readability. 2002-01-25 20:02:31 +00:00
pschwartau%netscape.com 06c3e5cc23 Skip another SpiderMonkey test generating infinite recursion and catching it as an error. 2002-01-25 03:39:21 +00:00
seawood%netscape.com 6a70bafd9e Fix "static" build support for win32 gmake builds.
Bug #58981 r=bryner
2002-01-25 03:20:51 +00:00
pschwartau%netscape.com 51855f980a Added three more cases to the test. 2002-01-25 03:17:23 +00:00
pschwartau%netscape.com 0614853ab3 Initial add. Regression test for bug 121658. 2002-01-25 03:04:18 +00:00
brendan%mozilla.org 558b3075a2 Make 'too much recursion' errors be exceptions #if JS_HASH_ERROR_EXCEPTIONS (121658, r=rogerl, sr=shaver). 2002-01-25 00:49:52 +00:00
brendan%mozilla.org f894025270 Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me. 2002-01-25 00:47:11 +00:00
nboyd%atg.com 76a4c84f32 UPdate implementation version 2002-01-24 20:17:05 +00:00
nboyd%atg.com e72e50f371 Fix out-of-date javadoc. 2002-01-24 19:57:52 +00:00
nboyd%atg.com 4b666335d1 Fix the following problem:
Thanks!

As promised, I tried the debugger this afternoon and I had a problem with the '-f' option.
  We use -f to run a standard "startup" script before executing the "main" script.  For
example, we run the Rhino shell with the options "-f startup.js main.js".

When running the debugger's shell with the same options the debugger exits after the
startup.js completes; i.e., I can single step starting from startup.js but the debugger
exits at the end of startup.js without letting me single step into main.js.  This worked
fine in the 1.5R2 release of Rhino and the debugger.

I have not had a chance to look into the problem closely, but a cursory look at the code
suggests (to me) that the problem can be in either the debugger or the shell (since the
debugger basically runs the shell after creating the right "hooks".)  Of course, it could
also be a problem with my embedding.

So ... my question is, has anyone tried single stepping when the options to the debugger
include a '-f' option.  If so, I'll continue to look for a problem in my embedding.

Any suggestions would be appreciated.

Thanks,

dave
2002-01-24 19:57:01 +00:00
rogerl%netscape.com 1006dca62b Fix bug #104375. Bug in String.replace() with $n where n > # parens.
r=khanson, sr=brendan.
2002-01-24 19:27:21 +00:00
nboyd%atg.com 4bec6381d7 Add new skip. 2002-01-24 14:10:35 +00:00
rginda%netscape.com 24ebcbe7fd bug 119865, crash exiting venkman, r=peterv, sr=brendan
use nsCOMPtr to avoid releasing a final reference via jsdScript::Invalidate()
2002-01-24 13:17:04 +00:00
jst%netscape.com 48f217780d Fixing bug 120899. Changing the NS_WARN_IF_FALSE() macro so that it can't be mis-used in optimized builds. This change makes the macro not usable in expressions that are supposed to be evaluated in release code since the macro now expands to nothing in non-debug builds. Also eliminate NS_VALIDATE which is equally mis-usable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org 2002-01-24 09:20:51 +00:00
jst%netscape.com 6cdbd25563 Fixing bug 120901. Eliminating unnecessary QI call in XPCWrappedNative::GetNative(). r=dbradley@netscape.com, sr=jband@netscape.com 2002-01-24 06:03:25 +00:00
jst%netscape.com a1404e6add Fixing bug 120718. Making XPCReadableJSStringWrapper not allocate non-shared buffer handles, this caused a malloc to happen for every XPCReadableJSStringWrapper that was accessed in mozilla, ~400 allocations at startup. r=dbaron@fas.harvard.edu sr=jaggernaut@netscape.com. 2002-01-24 05:59:41 +00:00
bratell%lysator.liu.se d07ec2480b Bug 120990 - make conversion from integer to string faster by not using sprintf. r=khanson, sr=brendan 2002-01-24 05:24:39 +00:00
pschwartau%netscape.com 67426cf190 Correcting typo. 2002-01-24 02:31:51 +00:00
pschwartau%netscape.com 12529ce535 Initial add. Regression test for bug 96526. 2002-01-24 02:25:05 +00:00
pschwartau%netscape.com 4c97714bd2 Initial add; testing Error.prototype.toString() 2002-01-23 02:24:32 +00:00
brendan%mozilla.org dd34968df3 Inline-eliminate js_Emit{Break,Continue} and move SRC_CONTINUE generation to the right place (120571, r=rogerl, sr=jst&jband, a=asa). 2002-01-22 22:06:10 +00:00
nboyd%atg.com cf425c7b30 Fix bug:
Norris,

I realize this is probably a nuisance, but the following problem causes our
regression test suite to fail:

    js> foo = new Error("bar")
    undefined: bar
    js> foo.name Error
    js> foo.toString()
    undefined: bar

Our test suite expects:

    js> foo = new Error("bar")
    Error: bar
    js> foo.name Error
    js> foo.toString()
    Error: bar

I have not yet tried the debugger with the RC2 release, but I expect to get
to that later today.

I hope I'm not to late to influence the 1.5R3 release.

Thanks,

dave
2002-01-19 17:43:26 +00:00
pschwartau%netscape.com 2ee11a6472 Made sections 13 and 14 more precise. 2002-01-19 03:34:50 +00:00
sfraser%netscape.com a4dba4fd18 Fix for bug 120451 -- clean up the sleep Q entry on quit, so that we don't leave a bad entry there and hose the machine some time later. r=sdagley, sr=beard, a=blizzard 2002-01-18 21:40:13 +00:00
pschwartau%netscape.com 045cf7247b Added two more cases to test. 2002-01-18 07:07:13 +00:00
nboyd%atg.com 85c4ac9982 Skip changed test. 2002-01-17 13:50:47 +00:00
beard%netscape.com 1614c44d99 Configuration to build on Mac OS X 10.1. 2002-01-17 06:39:04 +00:00
jst%netscape.com 15825cf675 Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com 2002-01-17 04:08:14 +00:00
dbaron%fas.harvard.edu b78789458f Missing part of fix for bug 117153, fixing threadsafety problems with shared empty buffer handles. b=120300 r=jag sr=alecf a=blizzard 2002-01-17 00:07:15 +00:00
nboyd%atg.com 7d952fd13b Add link to article with Rhino. 2002-01-16 16:07:12 +00:00
rogerl%netscape.com 91be3b08e4 Fixed RegExp bug #72964, r=khanson, sr=brendan 2002-01-16 06:47:06 +00:00
rogerl%netscape.com ba120f9938 Fixed RegExp bugs #105972 & #87231. r=khanson, sr=brendan. 2002-01-16 06:06:34 +00:00
brendan%mozilla.org 16168841f8 Simplify #ifdefs in JS_Assert to default to fprintf (45673, debug only, r=rogerl, sr=me, patch from jband). 2002-01-16 05:17:58 +00:00
brendan%mozilla.org 17a60010e3 Checking in patch for rob1@rekl.yi.org, r=khanson, sr=brendan (but neither file is part of the build). 2002-01-16 05:12:53 +00:00
seawood%netscape.com fa5df5e54c Use dynamic library & xpidl_module names from nmake build for win32 gmake builds for compatibility.
bug #58981 sr=jag
2002-01-16 05:10:09 +00:00
brendan%mozilla.org 54a4aac7b9 Checking in patch for Steven Cole <scole@planetweb.com> to fix js_DoubleToECMAInt32 (120083, r=khanson, sr=brendan). 2002-01-16 00:17:16 +00:00
pschwartau%netscape.com 0bf973e9e1 Adding toInt32 tests for numbers between -2^31 and -2^32 with fractional parts. See bug 120083. 2002-01-16 00:16:48 +00:00
pschwartau%netscape.com ef42ed2b41 Adding toInt32 tests for numbers greater than 2^31 with fractional parts. See bug 120083. 2002-01-15 23:27:12 +00:00
dbradley%netscape.com bfe2c74147 Bug 111068 - SyncXPCContextLists uses of XPCContext::Mark is not thread safe. patch by jband, r=dbradley, sr=jst 2002-01-15 22:49:46 +00:00
nboyd%atg.com 13ab451fe3 Update for 1.5R3. 2002-01-15 17:35:09 +00:00
pschwartau%netscape.com 0f4744e066 Correcting a typo in comments- 2002-01-15 01:07:28 +00:00
pschwartau%netscape.com 1c6399c316 Initial add. Regression test for bug 119909. 2002-01-15 00:51:12 +00:00
rginda%netscape.com 2e39614ba0 bug 119938, nebiros bustage, r=dbaron
remove useless casts
2002-01-14 21:59:34 +00:00
jband%netscape.com 8c8b5a2595 fix bug 119387. Add a non-allocating IID version of the frequently used getIIDForParam method. r=dbradley sr=jst 2002-01-14 20:02:14 +00:00
bryner%netscape.com c4219520f9 Bug 119743 - autocomplete doesn't work in gcc 2.96 -O2 builds. r=hixie, sr=brendan. 2002-01-14 06:45:21 +00:00
nboyd%atg.com 9d02982aa1 Exclude Unicode-2 incompatible tests 2002-01-14 01:21:07 +00:00
beard%netscape.com 613c094d95 Fix mac bustage: jschar* and PRUnichar* aren't compatible. 2002-01-12 01:40:15 +00:00
rginda%netscape.com 7cc222ac6c bug 115695, rs=brendan, venkman only
netive changes relating to pretty print support, includes...
* remove jsdIPC interface, replaced with ulong offsets from PC 0.
* add |pcmap| parameter to select between sourcetext/prettyprint linemaps (pcToLine, lineToPc, and isLineExecutable.)
* add |functionSource| property to jsdIScript.
* add |tag| to jsdIScript.
* fixed potential jsdIScript leaks.
2002-01-12 00:56:35 +00:00
pschwartau%netscape.com 1d8176c442 Updating JS_GetImplementationVersion() to date of latest JS release (67111). 2002-01-11 23:18:39 +00:00
pschwartau%netscape.com 150958d489 Correcting a mistaken comment. 2002-01-11 01:34:07 +00:00
pschwartau%netscape.com 720ebc13e5 Initial add. Regression test for bug 103602. 2002-01-11 01:23:40 +00:00
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