Commit Graph

3476 Commits

Author SHA1 Message Date
pschwartau@netscape.com
3c5a14d86e Initial add. Regression test for bug 131510. 2002-03-17 05:24:01 +00:00
brendan@mozilla.org
786e5d1777 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
brendan@mozilla.org
7b27e51bf8 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
42f8041358 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
dd5bad2770 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
khanson@netscape.com
8309c3214c 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
ca55d39f99 Added two new cases where the result is all zeros. 2002-03-15 05:15:57 +00:00
jband@netscape.com
cb7bc594a2 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
ab1af9ef64 bug #130711, r=khanson, sr=brendan, a=asa, memory leak in JS_dtoa 2002-03-15 00:11:44 +00:00
brendan@mozilla.org
8fc61b023c 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
1677bee583 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
c1947f32c6 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
brendan@mozilla.org
633502b8ba 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
19dfe2cd51 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
brendan@mozilla.org
05ce2fb923 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
brendan@mozilla.org
600598e2a6 Missing JSFunction API (129545, r=shaver, sr=jband, a=asa). 2002-03-12 21:58:27 +00:00
brendan@mozilla.org
237a4f5833 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
jband@netscape.com
87bef85769 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
8290597db2 Avoid MSVC bogo-warning. 2002-03-09 00:55:26 +00:00
brendan@mozilla.org
0d3dc64188 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
bbf080cede 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
19d6a0ddb4 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
95fddea199 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
fc6d5e4b32 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa 2002-03-06 07:48:55 +00:00
pschwartau@netscape.com
4a79471a16 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
080b5ba6fa Initial add. Regression test for bug 127557. 2002-03-06 05:14:58 +00:00
brendan@mozilla.org
141dcbca85 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
77dd258d42 Universal config file for Darwin. 2002-03-05 15:52:37 +00:00
beard@netscape.com
732b837421 fix for bug #59686, a=asa@mozilla.org, r=rogerl, sr=shaver. 2002-03-05 15:09:05 +00:00
shaver@mozilla.org
53c719a741 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
b2dc7013bb 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
9ae07564bc Needed for Mac OS X 10.1.3 / Darwin 5.3 2002-03-04 16:14:41 +00:00
pschwartau@netscape.com
9d15aef2b3 Initial add. Regression test for bug 122076. 2002-03-04 04:11:47 +00:00
brendan@mozilla.org
7d99d62a2a 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
183e875235 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
d2b2e3f7b5 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
f74899b988 Skip new test that uses the Error.stack property of SpiderMonkey. 2002-03-01 21:58:23 +00:00
pschwartau@netscape.com
23d18c2c54 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
f615560707 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
206510c914 Improved regexp reporting for Rhino by imitating SpiderMonkey's Array.toSource() method. 2002-02-27 18:36:46 +00:00
rginda@netscape.com
c11da0b0d9 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
569ec5ca45 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
3d3a06146e 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
583d8e0cb1 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
brendan@mozilla.org
5424a26362 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
10d95e9bf8 Comment change only, quick followup to last humongous checkin. 2002-02-23 04:44:40 +00:00
brendan@mozilla.org
8e12dc9009 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
c44c148137 Adding two more cases to test. Improving readability. 2002-02-23 01:14:51 +00:00
pschwartau@netscape.com
7ebd20beee Initial add. 2002-02-20 19:07:08 +00:00
jband@netscape.com
7929f37be1 fix bug 126333. reduce shutdown leakage by releaseing Components object members. r=dbradley sr=alecf 2002-02-20 07:03:27 +00:00