Commit Graph

1685 Commits

Author SHA1 Message Date
norris%netscape.com
4505665f23 Avoid static never-released reference to streams; causes problems for Patrick Beard's use of the shell.
git-svn-id: svn://10.0.0.236/trunk@60895 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 17:08:31 +00:00
jband%netscape.com
c87818af7f Reimplement the Components.[ID,Exception,Constructor] properties in C++. These
things were completely unusable due to security restriction in anything besides
xpcshell. This fixes bug 26879 and helps a lot for bug 8700 because is reduces
the work done for JSContext creation.

Also, ease the burden of xptcall porters by doing IS_COMPONENT for all unix platforms.

r=mccabe


git-svn-id: svn://10.0.0.236/trunk@60819 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 06:43:51 +00:00
norris%netscape.com
2843476366 Fix contributors list.
git-svn-id: svn://10.0.0.236/trunk@60751 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 00:09:58 +00:00
rogerl%netscape.com
906664fef9 Nuts, checked in wrong file AND named wrong bug in previous checkin, msu
be friday or something.
Correct bug# is 26060.


git-svn-id: svn://10.0.0.236/trunk@60528 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 23:00:21 +00:00
rogerl%netscape.com
55516c09bf r=brendan@mozilla.org
bug #26857
Fix for evaluating multi-part script prologs in advance.


git-svn-id: svn://10.0.0.236/trunk@60514 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:21:15 +00:00
rogerl%netscape.com
5433804427 r=brendan@mozilla.org
Prepare for new setter/getter syntax.


git-svn-id: svn://10.0.0.236/trunk@60513 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:19:33 +00:00
rogerl%netscape.com
c31ce73e9e r=mccabe
bug #22866
Support unicode line/paragraph separators.


git-svn-id: svn://10.0.0.236/trunk@60512 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:17:56 +00:00
rogerl%netscape.com
fb68bd916d r=norris
Deal with precendence warning whinings


git-svn-id: svn://10.0.0.236/trunk@60510 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:16:55 +00:00
beard%netscape.com
b701e23042 added DTOA.java
git-svn-id: svn://10.0.0.236/trunk@60257 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 23:15:27 +00:00
rogerl%netscape.com
2da230d083 Changed implementation of toString(<base>) to use Waldemar's code from
SpiderMonkey.


git-svn-id: svn://10.0.0.236/trunk@60249 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 19:52:31 +00:00
mccabe%netscape.com
e704ac16c8 Added comment recommending rooting of new script objects, to address problems experienced by netscape.public.mozilla.jseng developers.
Also verbiage refactory.

r=brendan


git-svn-id: svn://10.0.0.236/trunk@60031 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 01:38:20 +00:00
rogerl%netscape.com
b0fb5acb33 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


git-svn-id: svn://10.0.0.236/trunk@60025 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 01:24:53 +00:00
scc%netscape.com
dcee2e659d Pro5 update
git-svn-id: svn://10.0.0.236/trunk@60002 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 23:06:04 +00:00
brendan%mozilla.org
87115d646b Comment/cosmetic changes only (r=shaver@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@59979 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 07:28:25 +00:00
norris%netscape.com
664c955bc3 Fix 18860 impossible to call applet's public methods from JavaScript
(fix from jeff.dyer@compilercompany.com, r=norris)


git-svn-id: svn://10.0.0.236/trunk@59959 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-06 23:34:50 +00:00
risto%netscape.com
d9a18e2f49 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


git-svn-id: svn://10.0.0.236/trunk@59873 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 07:23:36 +00:00
brendan%mozilla.org
54225d3ee2 Argh, fix stupid typo that sometimes breaks for/in loops (26595, r=jband@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@59831 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 02:04:16 +00:00
brendan%mozilla.org
2e5e3a4050 Fix crash reported in bug 26595 (r=jband@netscape.com) via better compilation-frame conditioning.
git-svn-id: svn://10.0.0.236/trunk@59830 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 01:54:13 +00:00
waldemar%netscape.com
1c777522b9 Fixed bug
git-svn-id: svn://10.0.0.236/trunk@59814 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 00:39:58 +00:00
waldemar%netscape.com
2b6f70d530 Fixed & bugs
git-svn-id: svn://10.0.0.236/trunk@59811 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 23:54:29 +00:00
waldemar%netscape.com
00f4b3f751 Fixed syntax error
git-svn-id: svn://10.0.0.236/trunk@59810 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 23:54:08 +00:00
pinkerton%netscape.com
d00dd9a869 oops, messed up the optimized target. now fixed.
git-svn-id: svn://10.0.0.236/trunk@59741 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 05:22:37 +00:00
pinkerton%netscape.com
cb0d0da5e1 fix the access paths for pro5 migration. r=macdev.
git-svn-id: svn://10.0.0.236/trunk@59731 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 03:27:36 +00:00
brendan%mozilla.org
43d1d6a141 - 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.


git-svn-id: svn://10.0.0.236/trunk@59716 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 02:01:49 +00:00
rogerl%netscape.com
42e8ee5441 r=Norris
License updating, bug#15529, continuing.


git-svn-id: svn://10.0.0.236/trunk@59693 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 00:08:13 +00:00
waldemar%netscape.com
5e45870b0a VC6 project and workspace
git-svn-id: svn://10.0.0.236/trunk@59640 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 08:27:00 +00:00
waldemar%netscape.com
746b82680a Updated for VC6
git-svn-id: svn://10.0.0.236/trunk@59639 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 08:25:01 +00:00
jband%netscape.com
55b4443d06 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
git-svn-id: svn://10.0.0.236/trunk@59613 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 03:25:53 +00:00
rginda%netscape.com
be37478ee3 Uncompressed version (so it can be in your classpath on all platforms.)
git-svn-id: svn://10.0.0.236/trunk@59584 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:48:50 +00:00
rogerl%netscape.com
5df6bd4346 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.


git-svn-id: svn://10.0.0.236/trunk@59582 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:44:03 +00:00
rginda%netscape.com
2c322a7c7b Renamed JavaObjectToLong-005.js to JavaObjectToLong-005-n.js
git-svn-id: svn://10.0.0.236/trunk@59533 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 20:21:34 +00:00
waldemar%netscape.com
7c96eeaee4 Turned off optimizations and inlining in debug build
git-svn-id: svn://10.0.0.236/trunk@59516 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:51:16 +00:00
waldemar%netscape.com
dac645273e Changed to match parser.h
git-svn-id: svn://10.0.0.236/trunk@59515 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:50:54 +00:00
waldemar%netscape.com
221ea5fed5 Added ArrayAutoPtr and reworked cstring -> String conversions
git-svn-id: svn://10.0.0.236/trunk@59514 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:50:26 +00:00
waldemar%netscape.com
43fa4b73e9 Added parsing of numerals and token printing
git-svn-id: svn://10.0.0.236/trunk@59513 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:48:40 +00:00
waldemar%netscape.com
45cdb36b26 Cleaned up and added String routines
git-svn-id: svn://10.0.0.236/trunk@59512 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:47:54 +00:00
waldemar%netscape.com
801a41fbac Added lexer call
git-svn-id: svn://10.0.0.236/trunk@59511 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:47:03 +00:00
waldemar%netscape.com
1bff632e4b Fixed bug
git-svn-id: svn://10.0.0.236/trunk@59510 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:46:36 +00:00
mccabe%netscape.com
7113e5b3ae 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


git-svn-id: svn://10.0.0.236/trunk@59455 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 01:10:31 +00:00
rginda%netscape.com
ac9c9bfcc2 Fix bitrot in RhinoEnv.java and DataTypes_017.java.
fresh build of jstests.jar


git-svn-id: svn://10.0.0.236/trunk@59452 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:57:03 +00:00
norris%netscape.com
6fc5a6608b Fix bug #25864 watch() vulnerability
r=vidur,rogerl


git-svn-id: svn://10.0.0.236/trunk@59445 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:58 +00:00
rginda%netscape.com
f54925bab8 initial add
git-svn-id: svn://10.0.0.236/trunk@59444 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:23 +00:00
rginda%netscape.com
3bbaed9c5f fresh build
git-svn-id: svn://10.0.0.236/trunk@59442 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:18:57 +00:00
rginda%netscape.com
bac4a3819f initial add of compiled testdriver
git-svn-id: svn://10.0.0.236/trunk@59418 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 22:48:52 +00:00
jband%netscape.com
83dccd80dd trivial block scope loop counter variable rename to squelch shadow warning.r=jband
git-svn-id: svn://10.0.0.236/trunk@59390 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 10:53:34 +00:00
mccabe%netscape.com
6668f989b3 Warning fixes. (Found one semantic problem in nsCLiveconnect.cpp)
r=mozbot


git-svn-id: svn://10.0.0.236/trunk@59388 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 09:12:58 +00:00
jband%netscape.com
f0476f0cfd 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
git-svn-id: svn://10.0.0.236/trunk@59387 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:48:17 +00:00
jband%netscape.com
3c195cdd56 added files: mozilla/js/src/xpconnect/src/xpcdebug.cpp
git-svn-id: svn://10.0.0.236/trunk@59386 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:48:00 +00:00
norris%netscape.com
41dfd3c7ea Fix use of unsupported typedef.
r=Jerry.Kirk@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@59300 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:10:12 +00:00
norris%netscape.com
6fd4778318 Remove unused private method.
git-svn-id: svn://10.0.0.236/trunk@59258 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 18:49:07 +00:00