Commit Graph

23928 Commits

Author SHA1 Message Date
rogerl@netscape.com
2a9cb8a69b r=brendan@mozilla.org
Prepare for new setter/getter syntax.
2000-02-11 22:19:33 +00:00
rogerl@netscape.com
a845f230e9 r=mccabe
bug #22866
Support unicode line/paragraph separators.
2000-02-11 22:17:56 +00:00
rogerl@netscape.com
2d1a7bcdc2 r=norris
Deal with precendence warning whinings
2000-02-11 22:16:55 +00:00
mccabe@netscape.com
85ebb3f6c4 Added comment recommending rooting of new script objects, to address problems experienced by netscape.public.mozilla.jseng developers.
Also verbiage refactory.

r=brendan
2000-02-08 01:38:20 +00:00
rogerl@netscape.com
6cea820e63 r=brendan@mozilla.org
Bug #14462, lot's of discussin there about these changes, but here's
Brendan's description :
In order, changes in the patch are:

- Rename JSSLOT_ITR_STATE to be JSSLOT_ITER_STATE (avoid cybercrud abbreviation
as cbrcrd, no more six-char id limits!).

- Property cache tests must occur with the object's scope-lock held, to close a
race with delete (js_DestroyProperty, always called with the property's scope
locked).  Once the cache has been hit, and before the lock is released, the
property's refcount must be bumped.  This requires re-acquisition of the lock
and js_DropScopeProperty afterward.

- Reworked js_FindProperty to use a do-while loop, as cx->fp->scopeChain must be
non-null.  This avoids a gratuitous lastobj init done to "Suppress gcc warning"
in the old revision.

- Akin to the property cache hit cases in jsinterp.c and jsobj.c's
js_FindProperty, code to hold and drop the scope-property by its refcount that
was #ifdef JS_THREADSAFE must be unconditional, now that user-defined getters
and setters may delete the property id they're getting or setting.

- Fixed overlong continuation line in jsobj.h.

/be
2000-02-08 01:24:53 +00:00
scc@netscape.com
51e320ef77 Pro5 update 2000-02-07 23:06:04 +00:00
brendan@mozilla.org
3fe449bdda Comment/cosmetic changes only (r=shaver@mozilla.org). 2000-02-07 07:28:25 +00:00
norris@netscape.com
f1a7c06688 Fix 18860 impossible to call applet's public methods from JavaScript
(fix from jeff.dyer@compilercompany.com, r=norris)
2000-02-06 23:34:50 +00:00
risto@netscape.com
5d11a7cffc Changing all cvs-mirror.mozilla.org references to point to politically
correct addresses, for example tinderbox.mozilla.org, lxr.mozilla.org or
bonsai.mozilla.org. cvs-mirror shouldn't use in URLs anymore because it's
now on different server.

r=bryner
2000-02-05 07:23:36 +00:00
brendan@mozilla.org
7dec3bf11b Argh, fix stupid typo that sometimes breaks for/in loops (26595, r=jband@netscape.com). 2000-02-05 02:04:16 +00:00
brendan@mozilla.org
9f45b5d4eb Fix crash reported in bug 26595 (r=jband@netscape.com) via better compilation-frame conditioning. 2000-02-05 01:54:13 +00:00
waldemar@netscape.com
8450d6a38e Fixed bug 2000-02-05 00:39:58 +00:00
waldemar@netscape.com
e6a680f31b Fixed & bugs 2000-02-04 23:54:29 +00:00
waldemar@netscape.com
daf8eab1ae Fixed syntax error 2000-02-04 23:54:08 +00:00
pinkerton@netscape.com
958cb345c5 oops, messed up the optimized target. now fixed. 2000-02-04 05:22:37 +00:00
pinkerton@netscape.com
d11bfd0a5a fix the access paths for pro5 migration. r=macdev. 2000-02-04 03:27:36 +00:00
brendan@mozilla.org
0be774be1e - Eliminate ancient, bogus proxying of function object for its call objects (23346, r=jband@netscape.com).
- Tabs expanded as much as I could stand, without taking too much cvsblame.
2000-02-04 02:01:49 +00:00
rogerl@netscape.com
f69bd917db r=Norris
License updating, bug#15529, continuing.
2000-02-04 00:08:13 +00:00
waldemar@netscape.com
e390affe02 VC6 project and workspace 2000-02-03 08:27:00 +00:00
waldemar@netscape.com
385c35a338 Updated for VC6 2000-02-03 08:25:01 +00:00
jband@netscape.com
8b06f08432 fix XPCContext leak bug 25911 r=beard. fix DOM wrapping case where static called object does not have a static DOM scope, but is run in a DOM context; e.g. calling a JS component from within a window that calls some native service that returns a DOM window - the serive is not a DOm object and has no static DOm scope, but the call is made on a DOM context so a dynamic lookup works. r=mscott 2000-02-03 03:25:53 +00:00
rginda@netscape.com
0d07f3ec6f Uncompressed version (so it can be in your classpath on all platforms.) 2000-02-03 00:48:50 +00:00
rogerl@netscape.com
483ea5c94d r=norris
Bug#24712, regexp greedy recursing wasn't handling zero kid back-tracked
state nor re-setting parenCount correctly.
Added license junk for bug#15529 (continuing).
Fix type-mismatch warning in jsstr.c
Switched off DEBUG only use of fd_pow under Windows.
2000-02-03 00:44:03 +00:00
rginda@netscape.com
3fe57f4d62 Renamed JavaObjectToLong-005.js to JavaObjectToLong-005-n.js 2000-02-02 20:21:34 +00:00
waldemar@netscape.com
e176da7ccb Turned off optimizations and inlining in debug build 2000-02-02 08:51:16 +00:00
waldemar@netscape.com
5ee6a1f895 Changed to match parser.h 2000-02-02 08:50:54 +00:00
waldemar@netscape.com
3494a4ca40 Added ArrayAutoPtr and reworked cstring -> String conversions 2000-02-02 08:50:26 +00:00
waldemar@netscape.com
b85518b720 Added parsing of numerals and token printing 2000-02-02 08:48:40 +00:00
waldemar@netscape.com
e021dabf17 Cleaned up and added String routines 2000-02-02 08:47:54 +00:00
waldemar@netscape.com
4056de3608 Added lexer call 2000-02-02 08:47:03 +00:00
waldemar@netscape.com
1e0f839e61 Fixed bug 2000-02-02 08:46:36 +00:00
mccabe@netscape.com
5ba4ad7fe2 Changes to allow Spider Monkey to be compiled under C++.
Courtesy Bill Gibbons <bill@gibbons.org>

His comments:

Here are the changes to JSRef to make it compile either as C or C++. Mostly the changes are to add missing casts (since C++ doesn't have implict conversion from void* to other pointer types nor implicit casts from ints to enumerations) plus a few random things like the use of "private" as a variable name.

There are a few other minor bug fixes; in particular:

  * A long statement with and'ed conditions is reformatted to make it easier to remove other builtin objects (e.g. Date).

  * A #if was added to jsscript.c for the JS_HAS_SCRIPT_OBJECT off case.

  * In jsmath a #ifdef was changed to #if.

My notes also mention...

  * jsobj.c should include jsopcode.h

  * jsfun.c - doesn't link if JS_HAS_ARGS_OBJECT is off

  * jsarray.c - a reference to js_ValueToSource should be conditional on JS_HAS_TOSOURCE

r=mccabe
2000-02-02 01:10:31 +00:00
rginda@netscape.com
f93ae0b32b Fix bitrot in RhinoEnv.java and DataTypes_017.java.
fresh build of jstests.jar
2000-02-02 00:57:03 +00:00
norris@netscape.com
0085b5a148 Fix bug #25864 watch() vulnerability
r=vidur,rogerl
2000-02-02 00:22:58 +00:00
rginda@netscape.com
6635090d05 initial add 2000-02-02 00:22:23 +00:00
rginda@netscape.com
f3a2bbd55e fresh build 2000-02-02 00:18:57 +00:00
rginda@netscape.com
320280ea26 initial add of compiled testdriver 2000-02-01 22:48:52 +00:00
jband@netscape.com
83b774f25d trivial block scope loop counter variable rename to squelch shadow warning.r=jband 2000-02-01 10:53:34 +00:00
mccabe@netscape.com
5eda05cb19 Warning fixes. (Found one semantic problem in nsCLiveconnect.cpp)
r=mozbot
2000-02-01 09:12:58 +00:00
jband@netscape.com
b981088663 add improved support for dumping the JS stack from the native debugger or using the 'debugger' statement in JavaScript. Doc coming to the mozilla site soon. r=mccabe 2000-02-01 08:48:17 +00:00
jband@netscape.com
e50acbe6c8 added files: mozilla/js/src/xpconnect/src/xpcdebug.cpp 2000-02-01 08:48:00 +00:00
norris@netscape.com
208ef9da4d Fix use of unsupported typedef.
r=Jerry.Kirk@Nexwarecorp.com
2000-01-31 23:10:12 +00:00
waldemar@netscape.com
55c9a06e80 Added numerics.cpp 2000-01-29 08:25:59 +00:00
waldemar@netscape.com
9b6d889911 Fixed NOT_REACHED 2000-01-29 08:25:36 +00:00
waldemar@netscape.com
9aae898e4b Added NATIVE_INT64 flag 2000-01-29 08:25:02 +00:00
waldemar@netscape.com
9c555a26b1 First Checked In. 2000-01-29 08:24:40 +00:00
jband@netscape.com
07cd703c95 trivial rename of local var in test to fix shadow warning 2000-01-29 04:53:22 +00:00
jband@netscape.com
027df0628d show more info when a call to wrapped JS object fails due to lack of the callee method - show what we were trying to call rather than let the engine just error out with 'undefined is not a function'. r=mccabe 2000-01-28 06:02:41 +00:00
mang@subcarrier.org
f33c0c1916 Add rules for incremental relinking on Unix to partially fix bug 23724.
The static libraries on Win32 are still broken. r=mccabe
2000-01-28 01:39:11 +00:00
norris@netscape.com
fc0846839b Fix test cases for long values, with one right at the boundary and one negative test just over the boundary. 2000-01-27 16:56:43 +00:00