4039 Commits

Author SHA1 Message Date
brendan%mozilla.org
70118ca998 Quick followup to last checkin -- warning fixes (d'oh!)
git-svn-id: svn://10.0.0.236/trunk@113772 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 07:56:29 +00:00
brendan%mozilla.org
31cf9fbeb3 Fix call and new expression parsenode beginning line number, where the arglist is on another line from the function or constructor, to avoid a bogus assertion in UPDATE_LINENO_NOTES, which is now replaced by better comments and an avoided gratuitous store to cg->currentLine (123371, r=rginda, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@113771 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 07:39:20 +00:00
brendan%mozilla.org
94f945ff94 Fix failure to check for JS_InitClass failure, reported by Eric Brueggemann <eric_brueggemann@yahoo.com>, r=shaver, sr=mozbot.
git-svn-id: svn://10.0.0.236/trunk@113768 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 07:01:37 +00:00
nboyd%atg.com
7c8814ac5e Have ClassNameHelper object be allocated lazily
git-svn-id: svn://10.0.0.236/trunk@113701 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 13:47:16 +00:00
nboyd%atg.com
6546deedfa Don't hold a static reference to a ClassLoader that will prevent JavaAdapter classes
from being unloaded.


git-svn-id: svn://10.0.0.236/trunk@113700 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 13:37:50 +00:00
jband%netscape.com
bc42c1e965 Add better support to xpconnect for converting between variants and arrays. bug 120881. r=dbradley sr=vidur. Trivial fix for case where we were hitting an assert at xpcom shutdown. bug 121536. r=dbradley rs=vidur.
git-svn-id: svn://10.0.0.236/trunk@113690 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:45:08 +00:00
jst%netscape.com
a49bb992db Fixing bug 116834. Making element.innerHTML='...<script>...</script>...' not execute the script, this makes mozilla compatible with IE wrt innerHTML and execution of scripts. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113684 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 05:53:56 +00:00
pschwartau%netscape.com
c9de0b7992 Initial add. Regression test for bug 123437.
git-svn-id: svn://10.0.0.236/trunk@113661 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:44:52 +00:00
nboyd%atg.com
ccd738333b Clean up formatting.
git-svn-id: svn://10.0.0.236/trunk@113613 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 18:58:03 +00:00
nboyd%atg.com
8ba4f03273 Change version to 1.5R4pre.
git-svn-id: svn://10.0.0.236/trunk@113605 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 15:26:31 +00:00
jband%netscape.com
9ce852e366 unbust XPCONNECT_STANDALONE build. No change to default build. bug 121438. rs=jband.
git-svn-id: svn://10.0.0.236/trunk@113579 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 20:05:22 +00:00
pschwartau%netscape.com
39e30db812 Initial add. Regression test for bug 123002.
git-svn-id: svn://10.0.0.236/trunk@113497 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:03:43 +00:00
seawood%netscape.com
25e0750204 Do not place the .res file inthe srcdir
git-svn-id: svn://10.0.0.236/trunk@113399 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 04:50:32 +00:00
igor%mir2.org
172a122344 Use heapsort instead of qsort for Array.sort to follow JS for reasons described in http://bugzilla.mozilla.org/show_bug.cgi?id=99120
git-svn-id: svn://10.0.0.236/trunk@113309 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 10:08:17 +00:00
brendan%mozilla.org
7804e10cfe Fix for(i in null) and for(i in undefined) to error per ECMA, rather than iterating zero times (121744, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@113304 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 07:30:05 +00:00
rginda%netscape.com
f5f8993e60 changing a string constant, comenting out a DEBUG_rginda
use more descriptive url when compiling prettyprint changes


git-svn-id: svn://10.0.0.236/trunk@113259 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:37:28 +00:00
pschwartau%netscape.com
475800eea1 Initial add. Regression test for bug 121744.
git-svn-id: svn://10.0.0.236/trunk@113232 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:57:28 +00:00
sfraser%netscape.com
67a35c1a08 Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113225 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:14:20 +00:00
rginda%netscape.com
dd071b060f quiet bogus "potentially unused" warnings, see bug 121178, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113202 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 08:37:57 +00:00
igor%mir2.org
041da0a0b6 Stricter enter/exit: enter performs sanity checks on supplied Context and the exit requires previous enter.
git-svn-id: svn://10.0.0.236/trunk@113162 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:58:22 +00:00
dougt%netscape.com
011f9b10e5 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


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
igor%mir2.org
316733af9e Few Native* classes are made package private and final. They had been public only for implementation reasons.
git-svn-id: svn://10.0.0.236/trunk@113124 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 18:40:13 +00:00
igor%mir2.org
b28d6ac14b Use ScriptRuntime.toString(double) to convert double to string. Easier to follow version of getElem/setElem
git-svn-id: svn://10.0.0.236/trunk@113114 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 09:44:24 +00:00
rginda%netscape.com
482526e770 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.


git-svn-id: svn://10.0.0.236/trunk@113111 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 08:32:23 +00:00
rginda%netscape.com
cec41f9f3b fixing os/2 bustage, false vs PR_FALSE mixup
git-svn-id: svn://10.0.0.236/trunk@113107 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 07:20:59 +00:00
rginda%netscape.com
62e2418433 bug 121178, r=jst,sr=brendan, "jsdIStackFrame::eval signature needs to be changed"
return exception from jsdService::Eval if one occurs.


git-svn-id: svn://10.0.0.236/trunk@113101 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 06:15:58 +00:00
rginda%netscape.com
65e86f32aa 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.


git-svn-id: svn://10.0.0.236/trunk@113100 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 05:56:02 +00:00
nboyd%atg.com
b55ba3f3bb Update implementation version.
git-svn-id: svn://10.0.0.236/trunk@113016 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 00:52:12 +00:00
brendan%mozilla.org
e39800b131 Checking in rogerl's fix for double-reports of compile-time errors (120197, r=brendan, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@112984 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:42:37 +00:00
nboyd%atg.com
cd6b463349 Clean up formatting.
git-svn-id: svn://10.0.0.236/trunk@112961 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 20:07:49 +00:00
nboyd%atg.com
c5eb49df96 Fix bug 121790
git-svn-id: svn://10.0.0.236/trunk@112957 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 19:15:06 +00:00
nboyd%atg.com
045cba9433 Fix formatting
git-svn-id: svn://10.0.0.236/trunk@112956 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 19:13:22 +00:00
pschwartau%netscape.com
8d4455a838 Improving readablity.
git-svn-id: svn://10.0.0.236/trunk@112909 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:52:24 +00:00
pschwartau%netscape.com
4a19a9a27b Improving readability.
git-svn-id: svn://10.0.0.236/trunk@112876 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 20:37:37 +00:00
pschwartau%netscape.com
eacce08adf Improving readability.
git-svn-id: svn://10.0.0.236/trunk@112875 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 20:02:31 +00:00
pschwartau%netscape.com
e11e57825f Skip another SpiderMonkey test generating infinite recursion and catching it as an error.
git-svn-id: svn://10.0.0.236/trunk@112831 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:39:21 +00:00
seawood%netscape.com
ec756d5c48 Fix "static" build support for win32 gmake builds.
Bug #58981 r=bryner


git-svn-id: svn://10.0.0.236/trunk@112825 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:20:51 +00:00
pschwartau%netscape.com
c14bfa304b Added three more cases to the test.
git-svn-id: svn://10.0.0.236/trunk@112823 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:17:23 +00:00
pschwartau%netscape.com
a321a29d25 Initial add. Regression test for bug 121658.
git-svn-id: svn://10.0.0.236/trunk@112819 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:04:18 +00:00
brendan%mozilla.org
0f5414ace6 Make 'too much recursion' errors be exceptions #if JS_HASH_ERROR_EXCEPTIONS (121658, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@112790 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:49:52 +00:00
brendan%mozilla.org
c403c777cd Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me.
git-svn-id: svn://10.0.0.236/trunk@112786 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:47:11 +00:00
nboyd%atg.com
b2a77430fe UPdate implementation version
git-svn-id: svn://10.0.0.236/trunk@112721 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 20:17:05 +00:00
nboyd%atg.com
04382ca085 Fix out-of-date javadoc.
git-svn-id: svn://10.0.0.236/trunk@112720 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:57:52 +00:00
nboyd%atg.com
2c5197ddf5 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


git-svn-id: svn://10.0.0.236/trunk@112719 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:57:01 +00:00
rogerl%netscape.com
195936b401 Fix bug #104375. Bug in String.replace() with $n where n > # parens.
r=khanson, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@112716 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:27:21 +00:00
nboyd%atg.com
33e7eec054 Add new skip.
git-svn-id: svn://10.0.0.236/trunk@112690 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:10:35 +00:00
rginda%netscape.com
4f7eb8c3f2 bug 119865, crash exiting venkman, r=peterv, sr=brendan
use nsCOMPtr to avoid releasing a final reference via jsdScript::Invalidate()


git-svn-id: svn://10.0.0.236/trunk@112686 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 13:17:04 +00:00
jst%netscape.com
b9772d48fe 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
git-svn-id: svn://10.0.0.236/trunk@112678 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:20:51 +00:00
jst%netscape.com
e262b0cb89 Fixing bug 120901. Eliminating unnecessary QI call in XPCWrappedNative::GetNative(). r=dbradley@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112665 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:03:25 +00:00
jst%netscape.com
786b4fe53a 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.
git-svn-id: svn://10.0.0.236/trunk@112663 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:59:41 +00:00