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
bratell%lysator.liu.se
0279313b6e
Bug 120990 - make conversion from integer to string faster by not using sprintf. r=khanson, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@112659 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:24:39 +00:00
pschwartau%netscape.com
f76a6c959b
Correcting typo.
...
git-svn-id: svn://10.0.0.236/trunk@112627 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:31:51 +00:00
pschwartau%netscape.com
9ed1dffe05
Initial add. Regression test for bug 96526.
...
git-svn-id: svn://10.0.0.236/trunk@112626 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:25:05 +00:00
pschwartau%netscape.com
db70a07962
Initial add; testing Error.prototype.toString()
...
git-svn-id: svn://10.0.0.236/trunk@112566 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:24:32 +00:00
brendan%mozilla.org
b0099ec3f6
Inline-eliminate js_Emit{Break,Continue} and move SRC_CONTINUE generation to the right place (120571, r=rogerl, sr=jst&jband, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@112531 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:06:10 +00:00
nboyd%atg.com
6e634bb933
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
git-svn-id: svn://10.0.0.236/trunk@112485 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 17:43:26 +00:00
pschwartau%netscape.com
bd88828901
Made sections 13 and 14 more precise.
...
git-svn-id: svn://10.0.0.236/trunk@112479 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 03:34:50 +00:00
sfraser%netscape.com
57420a32ce
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
...
git-svn-id: svn://10.0.0.236/trunk@112464 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:40:13 +00:00
pschwartau%netscape.com
c24771d276
Added two more cases to test.
...
git-svn-id: svn://10.0.0.236/trunk@112421 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 07:07:13 +00:00
nboyd%atg.com
6b8ee0444c
Skip changed test.
...
git-svn-id: svn://10.0.0.236/trunk@112388 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 13:50:47 +00:00
beard%netscape.com
c3913452f6
Configuration to build on Mac OS X 10.1.
...
git-svn-id: svn://10.0.0.236/trunk@112380 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 06:39:04 +00:00
jst%netscape.com
2337395ba4
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
...
git-svn-id: svn://10.0.0.236/trunk@112375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:08:14 +00:00
dbaron%fas.harvard.edu
7211b45852
Missing part of fix for bug 117153, fixing threadsafety problems with shared empty buffer handles. b=120300 r=jag sr=alecf a=blizzard
...
git-svn-id: svn://10.0.0.236/trunk@112363 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 00:07:15 +00:00