3997 Commits

Author SHA1 Message Date
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
nboyd%atg.com
2867e3c9b7 Add link to article with Rhino.
git-svn-id: svn://10.0.0.236/trunk@112346 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 16:07:12 +00:00
rogerl%netscape.com
71667da74b Fixed RegExp bug #72964, r=khanson, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112325 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:47:06 +00:00
rogerl%netscape.com
3b10829097 Fixed RegExp bugs #105972 & #87231. r=khanson, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@112317 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:06:34 +00:00
brendan%mozilla.org
789f2defb4 Simplify #ifdefs in JS_Assert to default to fprintf (45673, debug only, r=rogerl, sr=me, patch from jband).
git-svn-id: svn://10.0.0.236/trunk@112312 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:17:58 +00:00
brendan%mozilla.org
d06125755d Checking in patch for rob1@rekl.yi.org, r=khanson, sr=brendan (but neither file is part of the build).
git-svn-id: svn://10.0.0.236/trunk@112311 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:12:53 +00:00
seawood%netscape.com
a9308f6d58 Use dynamic library & xpidl_module names from nmake build for win32 gmake builds for compatibility.
bug #58981 sr=jag


git-svn-id: svn://10.0.0.236/trunk@112307 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:10:09 +00:00
brendan%mozilla.org
07d1aed3b1 Checking in patch for Steven Cole <scole@planetweb.com> to fix js_DoubleToECMAInt32 (120083, r=khanson, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@112244 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:17:16 +00:00
pschwartau%netscape.com
9f23c83c58 Adding toInt32 tests for numbers between -2^31 and -2^32 with fractional parts. See bug 120083.
git-svn-id: svn://10.0.0.236/trunk@112242 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:16:48 +00:00
pschwartau%netscape.com
9a2d8a8068 Adding toInt32 tests for numbers greater than 2^31 with fractional parts. See bug 120083.
git-svn-id: svn://10.0.0.236/trunk@112222 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:27:12 +00:00
dbradley%netscape.com
71da3c517b Bug 111068 - SyncXPCContextLists uses of XPCContext::Mark is not thread safe. patch by jband, r=dbradley, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112208 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:49:46 +00:00
nboyd%atg.com
d4a092d480 Update for 1.5R3.
git-svn-id: svn://10.0.0.236/trunk@112187 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 17:35:09 +00:00
pschwartau%netscape.com
05aae283e6 Correcting a typo in comments-
git-svn-id: svn://10.0.0.236/trunk@112135 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:07:28 +00:00
pschwartau%netscape.com
8c99a7cfd2 Initial add. Regression test for bug 119909.
git-svn-id: svn://10.0.0.236/trunk@112130 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:51:12 +00:00
rginda%netscape.com
b24274d903 bug 119938, nebiros bustage, r=dbaron
remove useless casts


git-svn-id: svn://10.0.0.236/trunk@112108 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:59:34 +00:00
jband%netscape.com
d024232d2d fix bug 119387. Add a non-allocating IID version of the frequently used getIIDForParam method. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@112081 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:02:14 +00:00
bryner%netscape.com
edf25fe5cd Bug 119743 - autocomplete doesn't work in gcc 2.96 -O2 builds. r=hixie, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@112055 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 06:45:21 +00:00
nboyd%atg.com
c1e495934f Exclude Unicode-2 incompatible tests
git-svn-id: svn://10.0.0.236/trunk@112048 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 01:21:07 +00:00
beard%netscape.com
23a8b301aa Fix mac bustage: jschar* and PRUnichar* aren't compatible.
git-svn-id: svn://10.0.0.236/trunk@112001 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 01:40:15 +00:00
rginda%netscape.com
0d2707afd4 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.


git-svn-id: svn://10.0.0.236/trunk@111989 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 00:56:35 +00:00
pschwartau%netscape.com
d6aa73e274 Updating JS_GetImplementationVersion() to date of latest JS release (67111).
git-svn-id: svn://10.0.0.236/trunk@111976 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 23:18:39 +00:00
pschwartau%netscape.com
ccc2a91b66 Correcting a mistaken comment.
git-svn-id: svn://10.0.0.236/trunk@111916 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 01:34:07 +00:00
pschwartau%netscape.com
c98a4807b2 Initial add. Regression test for bug 103602.
git-svn-id: svn://10.0.0.236/trunk@111913 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 01:23:40 +00:00
brendan%mozilla.org
dca9356b95 Remove Call constructor (118732) and fix old bug in Function where it failed to convert args to strings (118849; both r=timeless, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@111801 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 08:51:01 +00:00
seawood%netscape.com
5a93fdeaae Link jsd into application in a "static" build.
Thanks to Robert Ginda <rginda@netscape.com> for the patch.
Bug #118784 r=cls


git-svn-id: svn://10.0.0.236/trunk@111800 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 08:47:01 +00:00
pschwartau%netscape.com
58957484ec Improving comments.
git-svn-id: svn://10.0.0.236/trunk@111721 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 19:53:02 +00:00
bryner%netscape.com
98ad565e5d 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.


git-svn-id: svn://10.0.0.236/trunk@111719 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 19:23:37 +00:00
nboyd%atg.com
2c2291ce22 Fix bug 118636: Date format
git-svn-id: svn://10.0.0.236/trunk@111687 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 15:21:31 +00:00
nboyd%atg.com
f1eddd2914 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)


git-svn-id: svn://10.0.0.236/trunk@111686 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 15:20:48 +00:00
pschwartau%netscape.com
2c2796da25 Initial add. Regression test for bug 118849.
git-svn-id: svn://10.0.0.236/trunk@111607 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 01:09:15 +00:00