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

4015 Коммитов

Автор SHA1 Сообщение Дата
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