khanson%netscape.com
1f44b97b02
Patch 74900 for bug #131817 (OOM in AllocSrcNote causes crash in js_NewSrcNote). The patch was contributed by Steven Cole (scole@planetweb.com), sr=brendan, r=khanson, a=scc
2002-03-20 05:45:12 +00:00
brendan%mozilla.org
7ff54ed3bf
Defend against early OOM when finishing JSDHashTables (131815, r=scole, sr=jband, a=asa).
2002-03-20 02:22:50 +00:00
pschwartau%netscape.com
a8d2f2a22f
Initial add. Regression test for bug 131964.
2002-03-20 00:23:22 +00:00
brendan%mozilla.org
9dab2ee0b0
Fix ChangeScopeTable gross dimensioning bug (131904, r=scole&khanson, sr=jband, a=asa).
2002-03-19 23:25:17 +00:00
brendan%mozilla.org
31b58dd43b
Fix 'var arguments;' in a function by specializing to JSOP_ARGUMENTS properly (131510, r=khanson, sr=jband, a=asa).
2002-03-19 22:51:48 +00:00
timeless%mac.com
fc883176bf
Bug 106386 rid source of misspellings
...
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00
igor%mir2.org
cabfb135bd
IdScriptable.maxInstanceId/IdScriptable.activateIdMap is replaced by getMaxId/setMaxId to have more flexible and simple id map initialization.
2002-03-18 01:26:01 +00:00
igor%mir2.org
038c198df2
Code to setup/restore security domain is moved to single place in Interpreter.interpret to make checking for correctness easy.
2002-03-17 20:10:31 +00:00
igor%mir2.org
2637565e90
cosmetics: change layout of Interpreter.interpret main switch from
...
switch (...)
case LABEL:
code
to
switch (...)
case LABEL:
code
to has less problems with fitting to 80-character lines
2002-03-17 18:40:11 +00:00
brendan%mozilla.org
f1d162f291
Forgot to check this in yesterday: fix all engine-defined getters and setters to have no slot [to be JSPROP_SHARED] (130970, r/sr=shaver&jband, a=asa).
2002-03-17 11:01:34 +00:00
pschwartau%netscape.com
866ed959ce
Initial add. Regression test for bug 131510.
2002-03-17 05:24:01 +00:00
igor%mir2.org
9e6193086a
Activate support for getting token names if debugging interpreter icode, not only when debugging parsing trees. Not to depend in TokenStream on Interpreter, printICode debug flag is moved to Context, as with printTrees definition.
...
Fixing debug printing of icode which are not defined in TokenStream
2002-03-17 03:34:43 +00:00
igor%mir2.org
74f8146547
Added .cvsignore to ignore generated sources
2002-03-16 23:34:23 +00:00
igor%mir2.org
506b614b74
Fixing serialization problem reported by Todd Trimmer (babyduck@usa.com):
...
...
>I did some tinkering and found there are pure java.lang.Object
>instantiations deep inside all the "standard objects" added to the
>ImporterTopLevel with Context.initStandardObject(). This is what is keeping
>it from serializing.
This is due to presence of Scriptable.NOT_FOUND and IdScriptable.NULL_VALUE tags in the data to serialize.
I replaced the type for the tags from Object to UniqueTag which is serializable ad knows how to make restored tags the same objects as Scriptable.NOT_FOUND and IdScriptable.NULL_VALUE.
Similarly Undefined was made serializable and to restore to Undefined.instance upon reading.
2002-03-16 23:31:04 +00:00
brendan%mozilla.org
8c5dc028c6
Null test to handle recovery from OOM under js_NewContext reported by scole@planetweb.com (r/sr=jband, a=me).
2002-03-16 23:19:35 +00:00
nboyd%atg.com
0da9eebc4b
Patch from Christopher Olivier:
...
While looking into optimizing the modifications I've
made, I noticed that one of the bottlenecks seemed to be calls to the Java
instanceof operator, particularly if the class argument to instanceof isn't
final. Based on this observation I tweaked ScriptRuntime.java to attempt to avoid
some of the many "instanceof Scriptable" calls in it (which I've attached). In
particular I optimized the comparison operators for the case where the arguments
are Number's. This seems to provide some significant performance improvement in
many cases particularly in compiled mode. See below (note the tests were
performed with today's rhinoLatest.zip code patched with the attached
ScriptRuntime.java and didn't include any of my other modifications).
2002-03-16 19:33:46 +00:00
brendan%mozilla.org
36fed32112
Restore non-bogus assertion removed in last rev, and fix the case that tripped it in js_ChangeScopeProperty, by not removing [and maybe freeing sprop->slot] before re-adding sprop; also fix all engine-defined getters and setters to have no slot [to be JSPROP_SHARED] (130970, r/sr=shaver&jband, a=asa).
2002-03-16 04:51:29 +00:00
rginda%netscape.com
2a7c647e4e
bug 129519, "JS_GetPropertyDesc gives up too easily", r=jband, sr=shaver, a=bren
...
dan
Reflect new JSPD_* defines, make jsd_GetValueProperty degrade gracefully instead of fail outright when we run into a problem fetching the property value.
2002-03-16 01:58:36 +00:00
rginda%netscape.com
5d1fd149ce
bug 129519, "JS_GetPropertyDesc gives up too easily", r=jband, sr=shaver, a=bren
...
dan
Make JS_GetPropertyDesc degrade gracefully instead of fail outright when we run
into a problem fetching the property value.
2002-03-16 01:56:19 +00:00
igor%mir2.org
af8cfb85ac
1. Implementing Externalizable interface in ObjToIntMap and UintMap to allow for efficient storage of internal hash table data. For ObjToIntMap it allows to restore correctly cached values of object's hash codes and do not store internal DELETED mark.
...
2. ObjToIntMap.clear and UintMap.clear now do not discard internal buffers, but clears references to external objects to match behavior of Java Vector.clear and Hashtable.clear.
2002-03-15 07:13:33 +00:00
khanson%netscape.com
afcecf88fe
bug #130991 (Out-of-Memory in jsshell causes assertion failure in jsobj.c)
patch by Brendan, sr=jband, r=khanson, a=asa
2002-03-15 06:22:00 +00:00
pschwartau%netscape.com
1ddd32348d
Added two new cases where the result is all zeros.
2002-03-15 05:15:57 +00:00
jband%netscape.com
9415313268
fix bug 130139. We are iterating an array of pointers not an array of objects. r=dbradley sr=brendan a=asa.
2002-03-15 04:10:25 +00:00
khanson%netscape.com
be23a9b2f9
bug #130711 , r=khanson, sr=brendan, a=asa, memory leak in JS_dtoa
2002-03-15 00:11:44 +00:00
brendan%mozilla.org
69ec40fdd0
Remove bogus assertion, tripped by js_ChangeScopePropertyAttrs calling js_AddScopeProperty (130970, r=shaver, sr=jband, a=shaver).
2002-03-14 21:59:16 +00:00
brendan%mozilla.org
9cf2b94e8e
Fix JS/PL_DHashTableEnumerate to compress or shrink the table after enumeration using the same logic as ADD and REMOVE use (120953, r=dbaron, sr=shaver, a=asa).
2002-03-14 21:55:08 +00:00
timeless%mac.com
08b7ea01bd
Bug 61314 Makefile rules for "jsmath.o" and "jsmathtemp.o" cause stale object files, obscure bugs
...
patch by mang@subcarrier.org r=rogerl sr=brendan a=asa
2002-03-14 21:41:09 +00:00
igor%mir2.org
3a4b35934d
ObjToIntMap was added to map Objects to int in a memory wise way and VariableTable was modified to use ObjToIntMap for itsVariableNames
2002-03-14 20:37:15 +00:00
brendan%mozilla.org
d8e97aa480
No strict warnings without the strict option, and other js1.5/mozilla1.0 tidying (129972, r=shaver, sr=jband, a=asa).
2002-03-14 00:14:48 +00:00
brendan%mozilla.org
c641143618
Fix Array.prototype.sort to follow ECMA and win perf by not (re-)defining length on the 'this' object (130451, r=shaver, sr=jband, a=asa).
2002-03-14 00:10:31 +00:00
nboyd%atg.com
688bec4a30
Turn on debug info in class files by default.
2002-03-13 19:34:23 +00:00
nboyd%atg.com
10a799dcbf
Fix problem reported in newsgroup:
...
If I have a Java class with a normal method that throws an exception, Rhino
(1.5pre4) will let JavaScript catch the exception. If the Java class has a
getter method, Rhino will NOT let JavaScript catch the exception. Very
disturbing.
Here's a console dump to show you what I'm talking about:
D:\jsSandbox>cat GIJoe.java
public class GIJoe
{
// Getter
public static int getYoJoe()
throws Exception
{
throw new Exception("Please catch me!");
}
// Normal
public static int rebel()
throws Exception
{
throw new Exception("Please catch me too!");
}
}
D:\jsSandbox>javac GIJoe.java
D:\jsSandbox>cat gi.js
var gi = new Packages.GIJoe();
try
{
var i = gi.rebel();
java.lang.System.err.println("rebel(): uncaught");
}
catch(e1)
{
java.lang.System.err.println("rebel(): caught");
}
try
{
var i = gi.yoJoe;
java.lang.System.err.println("yoJoe: uncaught");
}
catch(e2)
{
java.lang.System.err.println("yoJoe: caught");
}
D:\jsSandbox>java -cp .;e:\javas\rhino1_5R4pre\js.jar
org.mozilla.javascript.too
ls.shell.Main
js> load("gi.js");
rebel(): caught
java.lang.Exception: Please catch me!
org.mozilla.javascript.WrappedException: WrappedException of Please catch
me!
at org.mozilla.javascript.JavaMembers.get(JavaMembers.java:105)
at
org.mozilla.javascript.NativeJavaObject.get(NativeJavaObject.java:93)
at
org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:691)
at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1591)
at
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
63)
at
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
at org.mozilla.javascript.Context.evaluateReader(Context.java:741)
at
org.mozilla.javascript.tools.shell.Main.evaluateReader(Main.java:347)
at
org.mozilla.javascript.tools.shell.Main.processSource(Main.java:336)
at org.mozilla.javascript.tools.shell.Global.load(Global.java:169)
at java.lang.reflect.Method.invoke(Native Method)
at
org.mozilla.javascript.FunctionObject.callVarargs(FunctionObject.java
:586)
at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:460)
at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1216)
at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1679)
at
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
63)
at
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
at org.mozilla.javascript.Context.evaluateReader(Context.java:741)
at
org.mozilla.javascript.tools.shell.Main.evaluateReader(Main.java:347)
at
org.mozilla.javascript.tools.shell.Main.processSource(Main.java:284)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:146)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:74)
js>
Due to a lack of an "uncaught" statement in the output, we see that the
exception from GIJoe::getYoJoe() was indeed thrown, but not caught by the
JavaScript.
Do any nightly builds past 1.5pre4 address this issue?
Todd Trimmer
2002-03-13 13:33:40 +00:00
brendan%mozilla.org
b8604537e0
khanson@netscape.com's patch to switch from QuickSort to heap-sort, plus a crucial ECMA-purity/property-tree-perf fix to InitArrayObject (to SET rather than DEFINE; bug 99120, r=waldemar, sr=shaver&brendan, a=asa).
2002-03-13 01:50:13 +00:00
igor%mir2.org
aaba13d85c
Rename catchStack to tryStack and allocate it only when required
2002-03-12 22:02:55 +00:00
igor%mir2.org
bf335ecd74
Move definitions of interpreter bytecode specific tokens like BREAKPOINT or INTNUMBER to Interpreter.java.
...
Use switch instead of string array to return token names not to depend on token oder.
2002-03-12 22:00:56 +00:00
brendan%mozilla.org
85f61aea80
Missing JSFunction API (129545, r=shaver, sr=jband, a=asa).
2002-03-12 21:58:27 +00:00
brendan%mozilla.org
080a1d8904
Don't forget to lock obj in js_AddNativeProperty and js_ChangeNativePropertyAttrs (130137, r=jband, sr=shaver, a=roc+moz).
2002-03-12 07:17:30 +00:00
gerv%gerv.net
8acf0e7dc0
Replacing original licensing text from C version of this file.
2002-03-11 23:11:55 +00:00
jband%netscape.com
45fbcd08b5
fix bug 129697. Don't leave a dangling (to crash later) JS root if JS_NewObject fails while creating a wrapped native. r=beard sr=jst a=asa (for trunk and 0.9.9 branch).
2002-03-09 03:01:44 +00:00
brendan%mozilla.org
6f913df624
Avoid MSVC bogo-warning.
2002-03-09 00:55:26 +00:00
brendan%mozilla.org
8e40c41dd2
Fix longstanding bug where watchpoints didn't work with JSPROP_SETTER (127243, r=rginda, sr=shaver, a=dbaron).
2002-03-08 22:46:13 +00:00
beard%netscape.com
2130c204f2
Fix for bug #123920 , prevents reentering the JS engine during Java object JS wrapper finalization, by deferring calls into Java at the end of the garbage collection cycle and storing the wrappers in a linked list, which gets processed by a GC callback.
...
r=jband, sr=brendan, a=asa
2002-03-08 22:37:40 +00:00
seawood%netscape.com
05677fad63
This patch replaces the bogus USE_AUTOCONF ifdef + platform ifdef tests with a
...
simple HAVE_LOCALTIME_R test. -DHAVE_LOCALTIME_R has been added to the
js/src/config/<platform>.mks as necessary.
bug #128556 r=brendan sr=shaver a=asa
2002-03-08 01:42:32 +00:00
rginda%netscape.com
b6d310bdda
bug 128057, r=brendan, sr=shaver, a=asa
...
check for JS_GetPropertyDesc failure in JS_GetPropertyDescArray
2002-03-06 22:12:38 +00:00
darin%netscape.com
026dda9f95
fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
2002-03-06 07:48:55 +00:00
pschwartau%netscape.com
7bf950d691
Skip new test that uses the clone() function in SpiderMonkey's js.c file
2002-03-06 05:34:22 +00:00
pschwartau%netscape.com
f2db0feaec
Initial add. Regression test for bug 127557.
2002-03-06 05:14:58 +00:00
brendan%mozilla.org
283927254c
Not part of build, for the js testsuite only: add clone shell function to clone a function object (for 127557 regression testing, a=shaver).
2002-03-06 04:45:32 +00:00
beard%netscape.com
8d87f23bdb
Universal config file for Darwin.
2002-03-05 15:52:37 +00:00
beard%netscape.com
f99920681d
fix for bug #59686 , a=asa@mozilla.org, r=rogerl, sr=shaver.
2002-03-05 15:09:05 +00:00
shaver%mozilla.org
8e595ac5fd
Bug 106864: xptcall support for the ARM platform, and mild jsnum.h arm-define
...
tweaks. Patches from Mark Crichton <crichton@gimp.org>, Russell King
<rmk@arm.linux.org>, Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>.
r=brendan on jsnum.h, sr=shaver, a=asa for trunk and branch.
2002-03-05 06:35:50 +00:00
nisheeth%netscape.com
fd47a2b589
Fix for bug 125465. r=jag, sr=jband, a=asa. Add AString, ACString, and AUTF8String support to XPCOM's variant data type. Also, add forward declarations of AString and ACString to nsrootidl.idl.
2002-03-05 02:22:02 +00:00
beard%netscape.com
470281580d
Needed for Mac OS X 10.1.3 / Darwin 5.3
2002-03-04 16:14:41 +00:00
pschwartau%netscape.com
90a17d03d6
Initial add. Regression test for bug 122076.
2002-03-04 04:11:47 +00:00
nboyd%atg.com
d608b0d326
Enter context if need be; JavaAdapters may have callbacks on threads unassociated
...
with contexts.
2002-03-03 16:16:07 +00:00
brendan%mozilla.org
8c62b9c3cc
Runaway recursion safety for Exception and js_ErrorToException.
...
The latter no longer calls the former via js_ConstructObject, to
minimize failure opportunities when converting an error into an
exception. Also, the 'stack' property of exception objects
faithfully preserves Unicode in function names and decompiled
actual argument sources.
Also, fun_xdrObject was reversing property order when encoding;
fixed to maximize property tree compression gain.
Also^2, js_ConstructObject was not handling success+not-found
return from FindConstructor.
bug 127136, r=rginda, sr=shaver, a=chofmann
2002-03-03 00:59:16 +00:00
brendan%mozilla.org
b91fdf7b4a
Fix topcrash regression from bug 62164: keep track of duplicate kids below the root ply of the property tree, so we can fix up each dup's parent link (128258, r=shaver, sr=jband, a=asa).
2002-03-01 23:29:54 +00:00
brendan%mozilla.org
93fb7da7ba
Fix call_enumerate to reflect compiler-created properties from function to its call object (127557, r=jband, sr=shaver, a=asa).
2002-03-01 23:25:34 +00:00
pschwartau%netscape.com
5c50a97069
Skip new test that uses the Error.stack property of SpiderMonkey.
2002-03-01 21:58:23 +00:00
pschwartau%netscape.com
cae89f0931
Initial add. Testing the Error.stack property of SpiderMonkey. This is an ECMA extension.
2002-03-01 21:50:18 +00:00
brendan%mozilla.org
3b2af78a32
Fix GC_MARK_DEBUG #ifdef'd code (not part of default build; r=polarbear, sr=shaver, a=dbaron).
2002-03-01 05:22:26 +00:00
pschwartau%netscape.com
95713a1ba6
Improved regexp reporting for Rhino by imitating SpiderMonkey's Array.toSource() method.
2002-02-27 18:36:46 +00:00
rginda%netscape.com
615e1e1682
part of bug 109652, "Venkman needs to profile" r=peterv,r=a=shaver
...
add profiling support.
2002-02-27 09:24:14 +00:00
rginda%netscape.com
56974c5103
part of bug 109652, "Venkman needs to profile"
...
sr=brendan, r=peterv, a=shaver
add JS_Now to the jsapi, and JS_GetScriptVersion to jsdbgapi
2002-02-27 09:17:21 +00:00
sfraser%netscape.com
e807b080fd
Fixing Mac bustage; add a bunch of casts between PRUnichar* and jschar* (why isn't jschar a wchar_t?). r=nisheeth
2002-02-26 03:01:03 +00:00
nisheeth%netscape.com
1fd0440412
Fix for bug 84186. r=dbradley, jag. sr=jband. Added support for CStrings, UTF8String, and AStrings to XPIDL. Also added the -t cmd line flag to XPIDL and XPTLINK that allows us to generate output for a specific XPT version. The XPT version number is being upped from 1.1 to 1.2 with this checkin.
2002-02-26 01:41:42 +00:00
igor%mir2.org
bd48843259
Use ClassFileWriter.toByteArray to get class file bytes in place of calling ClassFileWriter with ByteArrayStream argument
2002-02-24 19:18:44 +00:00
igor%mir2.org
92a2d6d41d
1. Added toByteArray to get class file as a byte array. Implementation first calculates the resulting array size to minimize number of allocations.
...
2. Set DEBUG to true to activate usage checks
2002-02-24 19:15:19 +00:00
brendan%mozilla.org
d3e5bf2b36
Fix stale comment about duplicate formal params (a=drivers, comment-only followup to 62164's big patch).
2002-02-24 00:26:57 +00:00
brendan%mozilla.org
e310922980
Comment change only, quick followup to last humongous checkin.
2002-02-23 04:44:40 +00:00
brendan%mozilla.org
3d6bf5b3f4
Major footprint/perf win: share property state using a tree whose root represents empty scopes, and whose non-root nodes represent scopes with properties added in order from the root to that node; to use double hashing to map these tree-paths for per-scope property lookup; and avoid locking where possible through immutability and mostly-benign&rare race tolerance (62164, r=shaver, sr=jband).
2002-02-23 03:49:27 +00:00
pschwartau%netscape.com
52765a23f3
Adding two more cases to test. Improving readability.
2002-02-23 01:14:51 +00:00
nboyd%atg.com
c6a13d37b2
Missed one codepath in previous fix for 126722. This should complete the fix.
2002-02-22 17:40:32 +00:00
nboyd%atg.com
d0fab0f0f7
Fix bug 126722
2002-02-21 15:53:50 +00:00
pschwartau%netscape.com
8bd647f85c
Initial add.
2002-02-20 19:07:08 +00:00
jband%netscape.com
0c9917b955
fix bug 126333. reduce shutdown leakage by releaseing Components object members. r=dbradley sr=alecf
2002-02-20 07:03:27 +00:00
rginda%netscape.com
5f0ee796ec
bug 126365, "add options and private support to jsdIContext", sr=jst, r=jband
...
add jsdIContext::options and ::privateData attributes
2002-02-20 05:45:57 +00:00
rogerl%netscape.com
6fd6c3f44f
r=thesteve, sr=brendan, bug @119909 - crashing RegExp with > 10 backrefs.
2002-02-20 05:43:26 +00:00
dbradley%netscape.com
f4fbed4e14
Bug 119382 - attribute nsIIDPtr IID considered harmful - This patch makes it an error to declare an attribute named IID or a method named getIID. r=jband, sr=jst
2002-02-19 14:48:00 +00:00
dbradley%netscape.com
3ad88a5a1a
Bug 121938 - XPCWrappedJS::GetNewORUsed does not look for inherited interfaces when matching interfaces. r=jband, sr=jst
2002-02-19 11:24:21 +00:00
pschwartau%netscape.com
474411362e
Skipping new testcase until bug 126317 is fixed.
2002-02-19 01:53:39 +00:00
brendan%mozilla.org
866338ff8e
Fix bad old js_ValueToInt32 to have an int-jsval fast path, to avoid f.p. inaccuracy (126159, r=shaver, sr=jband).
2002-02-19 00:02:29 +00:00
pschwartau%netscape.com
9ba6a7adbd
Adding more cases and improving comments.
2002-02-18 23:59:15 +00:00
jband%netscape.com
65e43ae322
bug 123770. extend xpconnect to use dynamic 'additional' interface info managers to support dynamic type info. Also, abstract out the Components.interfaces object and make the items use a bit less memory. r=dbradley sr=vidur
2002-02-18 23:47:30 +00:00
brendan%mozilla.org
f673b27a76
Followup fix for ECMA-262 15.10.6.2 step 6, plus warning fixes (76717, r/sr=shaver&jband).
2002-02-18 23:43:28 +00:00
pschwartau%netscape.com
a42a6941bd
Fixing a typo in the comments
2002-02-18 23:29:54 +00:00
seawood%netscape.com
52cc4f6707
Removing unneeded LIBS setting. LIBS isn't used to link libraries.
2002-02-18 23:19:49 +00:00
pschwartau%netscape.com
82dc1161ae
Initial add.
2002-02-18 22:03:46 +00:00
nboyd%atg.com
65958a6e3e
Fix more broken links.
2002-02-18 16:25:26 +00:00
nboyd%atg.com
02bbbbf4c8
Fix broken link.
2002-02-18 15:20:39 +00:00
rginda%netscape.com
28b388110b
bug 124717, need to wrap JSVAL_NULL for eval result, instead of just returning it unwrapped.
2002-02-16 10:53:52 +00:00
pschwartau%netscape.com
644a02b5da
Hard-coding the expected value for Error.length in Rhino vs. SpiderMonkey
2002-02-15 06:31:41 +00:00
jband%netscape.com
9951d7c6ff
fix bug 125430. Unbust Components.returnCode by not setting the JSPROP_READONLY bit on the read/write property. r=bzbarsky sr=jst
2002-02-15 03:33:37 +00:00
dbradley%netscape.com
96f9ee4d9c
Bug 121526 - Need to expose the security info pointer from the nsIXPConnectWrappedNative interface. r=jst, sr=jband
2002-02-15 03:11:15 +00:00
rginda%netscape.com
27f1158c90
fix uninitialized return value in jsd_IsStackFrameNative
2002-02-14 22:39:09 +00:00
pschwartau%netscape.com
cf200c945e
Adding a comment.
2002-02-14 20:42:44 +00:00
pschwartau%netscape.com
1558dcb700
Add skip for new RegExp performance test. Bug 125562 (Rhino), bug 85721 (SpiderMonkey).
2002-02-14 20:37:40 +00:00
rogerl%netscape.com
9176616495
Fixed expected output from case 1. (sr=pschwartau)
2002-02-14 19:21:13 +00:00
pschwartau%netscape.com
9f52495aaf
Correcting an error
2002-02-14 19:11:15 +00:00
pschwartau%netscape.com
68fab19f05
Initial add. Regression test for bug 85721.
2002-02-14 19:06:59 +00:00
rginda%netscape.com
605e3a0d2e
bug 124474, "add native frame support to jsd"
...
sr=shaver, r=jband
add JSD_IsStackFrameNative, IsStackFrameDebugger, and IsStackFrameConstructing
add similar attributes to jsdIStackFrame
tweak return values in jsds_FilterHook
don't include dummy stack frames in threadstates
bug 110387, "Crash on exiting venkman"
check to see if the debugger was turned off before going through with an unPause.
2002-02-14 07:57:30 +00:00
rginda%netscape.com
6564fd58e3
bug 124474, "JS_IsNativeFrame should return !fp->script"
...
also includes typo fix from bug 124474
sr=shaver, r=jband
2002-02-14 07:52:02 +00:00
brendan%mozilla.org
15ad22874d
Construct error objects to consolidate their default property setting; this entails adding JS_ConstructObjectWithArguments (123177, r=rginda, sr=shaver).
2002-02-14 07:25:34 +00:00
jband%netscape.com
43ed832482
add regression test for bug 125430. NOT PART OF THE BUILD
2002-02-14 06:01:54 +00:00
nboyd%atg.com
fd53ae729f
Add skips for new tests.
2002-02-14 02:05:38 +00:00
dbradley%netscape.com
65087c7eec
Bug 124251 - Fix for some DOMStrings leaking when using -mail. r=dbaron, sr=jst
2002-02-14 00:12:44 +00:00
nboyd%atg.com
1e805530da
Fix build problem in batik:
...
[javac] Compiling 1427 source files to /data/gump/xml-batik/classes
[javac] /data/gump/xml-batik/sources/org/apache/batik/script/rhino/EventTargetWrapper.java:81:
coerceType(java.lang.Class,java.lang.Object,boolean)
in org.mozilla.javascript.NativeJavaObject cannot be applied to
(java.lang.Class,java.lang.Object)
2002-02-13 03:07:31 +00:00
igor%mir2.org
60d1faddd2
Making final for performance reasons
2002-02-13 01:41:11 +00:00
rogerl%netscape.com
08b08f2d2c
Fixing bug #103351 - using undefined as RegExp value for String.replace.
...
r=khanson, sr=brendan
2002-02-12 19:12:42 +00:00
ccarlen%netscape.com
9285546c83
Bug 115334 - Removing .mcp files which are obsolete after XML conversion. r=jj/sr=sfraser
2002-02-12 15:41:41 +00:00
nboyd%atg.com
56b4c7639b
Add new Context method "toType" to convert to a specified Java type
2002-02-12 14:30:27 +00:00
nboyd%atg.com
3b7d591dab
Fix 124900
2002-02-12 14:29:30 +00:00
brendan%mozilla.org
220ffd5fbc
Hack special frame flags into fp when compiling under JS_Evaluate*InStackFrame, so useless expressions don't get optimized away (92087, r=rginda, sr=jband).
2002-02-12 07:44:48 +00:00
pschwartau%netscape.com
707d16f185
Initial add. Testing functions with duplicate formal parameter names.
2002-02-12 01:35:05 +00:00
pschwartau%netscape.com
26a03c6b5d
Added two new cases to the test.
2002-02-11 23:02:32 +00:00
pschwartau%netscape.com
b48480f087
Improving readability of summary.
2002-02-11 22:04:16 +00:00
pschwartau%netscape.com
3e819f0609
Fixing a typo.
2002-02-11 20:13:59 +00:00
pschwartau%netscape.com
c632c407e1
Initial add. Testing functions with duplicate formal parameter names.
2002-02-11 19:39:12 +00:00
igor%mir2.org
5da4f07e74
cosmetics: end-of-line whitespace removal
2002-02-11 01:33:23 +00:00
igor%mir2.org
e19dc64c61
tabs -> spaces
2002-02-11 00:02:14 +00:00
igor%mir2.org
f2b5c3ca6b
Avoid unnecessary calls to Context.getContext() by passing Context directly as an argument
2002-02-10 21:10:35 +00:00
igor%mir2.org
ae18854f6f
Always use try/finally to wrap Context.exit
2002-02-10 21:09:42 +00:00
brendan%mozilla.org
f55fa17330
Add exception object stack property, string valued; clean up NULL/VOID mixup, missing OOM test, etc. (123177, r=rginda, sr=shaver).
2002-02-09 06:28:58 +00:00
pschwartau%netscape.com
24bfd4186f
Added five new cases to test number values between uint32 upper-bound and long upper-bound.
2002-02-09 00:18:12 +00:00
brendan%mozilla.org
558ab58c83
Remove bad old regexp object locking across huge, deadlock-prone, so-not-critical sections (123930, r=rogerl, sr=jband&shaver).
2002-02-09 00:14:31 +00:00
brendan%mozilla.org
08f1da9ec7
Fix recently-uncovered ECMA violation: lastIndex must use double storage (124339, r=rogerl, sr=shaver).
2002-02-08 23:59:49 +00:00
pschwartau%netscape.com
fc321473a3
Improving readability.
2002-02-08 23:22:59 +00:00
pschwartau%netscape.com
119ec875f0
Improving readability.
2002-02-08 21:42:55 +00:00
brendan%mozilla.org
8e1d9bb9ca
Make regexp.lastIndex threadsafe by multiplexing it by thread-id in each r.e. (76717, r=rogerl, sr=shaver).
2002-02-08 02:46:03 +00:00
brendan%mozilla.org
1d6ebcfbea
Avoid all gc <> obj-lock deadlocks by letting the gc run lock-free, safe since all requests are suspended or ended when the gc runs (114712, r=shaver, sr=jband).
2002-02-08 01:55:30 +00:00
nboyd%atg.com
ef54ffb244
* Avoid creating a ClassNameHelper when turning caching off.
...
* When turning debug generation on, don't change opt level from -1 to 0.
2002-02-07 17:54:57 +00:00
rginda%netscape.com
72d9d63b4f
bug 121039, "Need a way to unwrap jsdIValues", r=jband, sr=jst
...
adds jsdIValue::getWrappedValue() and jsdIService::wrapValue() methods to provid
e js scripts a way to convert between jsdIValues and "real" js values.
Also includes fix to not call breakpoint hook while paused, and changes jsdIFilt
er::glob attribute to jsdIFilter::globalObject, to match jsdIContext::globalObject
2002-02-07 00:59:55 +00:00
brendan%mozilla.org
58d8f5d607
Quick followup to last checkin -- warning fixes (d'oh!)
2002-02-06 07:56:29 +00:00
brendan%mozilla.org
955c321423
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).
2002-02-06 07:39:20 +00:00
brendan%mozilla.org
007549706e
Fix failure to check for JS_InitClass failure, reported by Eric Brueggemann <eric_brueggemann@yahoo.com>, r=shaver, sr=mozbot.
2002-02-06 07:01:37 +00:00
nboyd%atg.com
e6676e0b45
Have ClassNameHelper object be allocated lazily
2002-02-05 13:47:16 +00:00
nboyd%atg.com
204c42cfd6
Don't hold a static reference to a ClassLoader that will prevent JavaAdapter classes
...
from being unloaded.
2002-02-05 13:37:50 +00:00
jband%netscape.com
3f114e88cf
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.
2002-02-05 06:45:08 +00:00
jst%netscape.com
60d1308df5
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
2002-02-05 05:53:56 +00:00
pschwartau%netscape.com
29ba61d5fe
Initial add. Regression test for bug 123437.
2002-02-05 01:44:52 +00:00
nboyd%atg.com
e93d36c2d5
Clean up formatting.
2002-02-04 18:58:03 +00:00
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
nboyd%atg.com
7d221ec600
Added comment about bug 115717.
2001-12-19 15:31:56 +00:00
brendan%mozilla.org
1b261555c1
Don't double-drop a property when strict-warning about duplicate formals (115436, r=khanson, sr=jband).
2001-12-19 02:10:26 +00:00
beard%netscape.com
0d07f28739
fix for bug #115545 . r=sdagley, sr=sfraser
2001-12-19 00:23:05 +00:00
dougt%netscape.com
9a75bc4b8e
nsIComponentManager API Changes (bug 98553)
...
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.
b) rename the old nsIComponentManager to nsIComponentManagerObsolete.
c) fixes callers which use to access the nsIComponentManager for component
registration functionality. These callers will temporary use the
nsIComponentManagerObsolete interface.
d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()
e) Perserves the old NS_GetGlobalComponentManager(). Note the cast usage.
r/sr = rpotts@netscape.com alecf@netscape.com brendan@mozilla.org
2001-12-19 00:12:41 +00:00
seawood%netscape.com
874c54280c
Landing the rest of the win32 gmake changes:
...
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup
Bug #58981 r=mcafee
2001-12-18 09:14:29 +00:00
pschwartau%netscape.com
31ce82673c
Updating bug number reference in test. The original bug has outgrown.
2001-12-18 01:23:15 +00:00
jaggernaut%netscape.com
2df17e0579
Remove timer from REQUIRES, the makefile.win edition
2001-12-16 18:08:20 +00:00
pavlov%netscape.com
5cd1b8e131
bug 78611. New XP threadsafe timer implementation. r=dougt sr=brendan
2001-12-16 06:13:17 +00:00
seawood%netscape.com
3738d752bc
Make OS/2 use the win32 build changes and finish LIB_PREFIX substitution.
...
Thanks to Javier Pedemonte (pedemont@us.ibm.com ) for the patch.
Bug #58981 r=cls
2001-12-14 23:49:04 +00:00