28 Commits

Author SHA1 Message Date
brendan%mozilla.org
729aa3812c Avoid 80th column violations and unnecessary local variable.
git-svn-id: svn://10.0.0.236/trunk@73722 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:15:08 +00:00
brendan%mozilla.org
4a68c03a16 Fix ECMA DontDelete compliance problems, which create getter/setter security holes (40760, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@71309 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 00:02:46 +00:00
mkaply%us.ibm.com
255a7c5844 # 37239
r= rogerl
OS/2 bring up continues - fix for floating point trap


git-svn-id: svn://10.0.0.236/trunk@70137 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:51:12 +00:00
brendan%mozilla.org
d2bc829802 Cleanups from tlundeen@webcrossing.com, plus fun->call=>native renaming.
git-svn-id: svn://10.0.0.236/trunk@69736 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 03:54:50 +00:00
rogerl%netscape.com
4b50f30017 Bug #32677, r=rginda bugs in Win32 optimized version for edge cases in
Math.exp and Math.pow
Bug #32937, r=rginda, implement missing toLocaleString


git-svn-id: svn://10.0.0.236/trunk@64520 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 23:45:07 +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
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
mccabe%netscape.com
4083308200 #ifdefs to build the JavaScript engine under metrowerks on windows machines.
Fixes courtesy Chris Dillman <chrisd@plaidworld.com>.

r=mccabe
a=sdagley


git-svn-id: svn://10.0.0.236/trunk@56316 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 00:03:50 +00:00
waldemar%netscape.com
9056e8e1e9 Fix to bug 17263: toPrecision when called with no arguments. r=shaver
git-svn-id: svn://10.0.0.236/trunk@55007 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 03:04:31 +00:00
mccabe%netscape.com
b31e8409ff Fix most remaining warnings in js/src. Patch courtesy slamm.
r=mccabe.


git-svn-id: svn://10.0.0.236/trunk@53245 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 21:52:35 +00:00
dmose%mozilla.org
ec2434440d update license boilerplate to NPL-1.1 dual-licensed with the GPL. a=brendan, r=brendan.
git-svn-id: svn://10.0.0.236/trunk@49258 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:12:09 +00:00
slamm%netscape.com
53b65fabbe Add braces to avoid "ambiguous else" warning.
git-svn-id: svn://10.0.0.236/trunk@48105 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:13:02 +00:00
waldemar%netscape.com
a564e927ae Added number formatting routines required by ECMA. Fixed several long-standing floating-point reading and writing bugs. Upgraded to latest version of David Gay's floating-point code to fix one of these bugs. Added many comments there.
git-svn-id: svn://10.0.0.236/trunk@47756 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:16:33 +00:00
brendan%mozilla.org
e226872154 Add new flag to js_DecompileValueGenerator calls.
git-svn-id: svn://10.0.0.236/trunk@40867 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 08:23:13 +00:00
mccabe%netscape.com
7ce68a6276 Changes to support building on Alpha NT.
Patches courtesy bob meader <bob@guiduck.com> who seems to be working fast and furious on this port.


git-svn-id: svn://10.0.0.236/trunk@40594 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 03:58:51 +00:00
brendan%netscape.com
6c457ab2cd Eliminate assignment in condition.
git-svn-id: svn://10.0.0.236/trunk@36983 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-26 03:01:14 +00:00
fur%netscape.com
40e974ccab Merge from SpiderMonkey140_BRANCH:
Incorporated changes from JS_STABLE_DROP_04261999 to JS_STABLE_DROP_06221999


git-svn-id: svn://10.0.0.236/trunk@36563 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 14:18:56 +00:00
fur%netscape.com
e655606d45 Checkpoint JS1.4 from JS_STABLE_10131998_BRANCH. Changes include:
+ merging of js/src and js/ref
 + elimination of most dependencies on NSPR
 + JS1.4 feature additions and accumulated bug fixes

More details are in last week's mozilla status report.


git-svn-id: svn://10.0.0.236/trunk@12797 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-14 10:22:38 +00:00
mccabe%netscape.com
b32b6c20e8 Propagating numerous fixes from js/ref
and development branches, including but
not limited to:

- Preliminary exception handling per
ECMA proposal; try, multiple
catchblocks, and finally.  Catchblocks
are of the form catch (v) or
catch(v:<guard>), where guard is an
optional boolean expression that is
evaluated to determine whether the
exception is to be caught by that block.

- ECMA-proposed 'in' operator; "'foo' in
o" or "4 in o" asks if o has property
foo or element 4.

- Added a new set of defines in
jsconfig.h for js 1.4
features-in-progress.  (in, instanceof,
exception handling.)  Default build
version is now 1.4.  Fixed a few
conditional features that had become
broken.

- Progress towards porting to FreeBSD
and Alpha; casts of NaN and friends to
int are a little more localized.  Not
there yet...

- New config files to compile on more
OSes; various fixes to improve
portability.


git-svn-id: svn://10.0.0.236/trunk@6907 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:07:22 +00:00
fur
aea62596b0 Propagation of numerous bug fixes from 4.06 (which have been reviewed
and tested in that release):

#114564: Fix JS_Enumerate to return an empty id array instead of null
#115395: Fix JS garbage collection
#115200: Security dialog no longer blows assertion
#123211: Make sure output of sort array function is -1, 0, or 1.
#116195: Fix ImportProperty(), cope with an existing local variable
         of the same name as the imported property
         Unbusticate JS_invoke() so that closures work again
#115384,#115395: Handle bugs in toSource that strike when
         getProperty is non-idempotent.  Fix crash during JavaScript
         garbage collection after enumerating object properties.

#??????: mjudge - Win16 files to make ptrdiff_t be 32 bits on Win16


git-svn-id: svn://10.0.0.236/trunk@3573 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 23:04:48 +00:00
mccabe
7880652747 Hopefully removed the offending jsstddef.h for good.
git-svn-id: svn://10.0.0.236/trunk@3006 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 03:55:10 +00:00
sar
964270c59d backing out mccabes checkin
git-svn-id: svn://10.0.0.236/trunk@2997 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 02:30:46 +00:00
mccabe
1ccdb802f9 Removed reference to jsstddef.h - which got propagated over from
recent changes to js/ref.  We need to fix prconv.sed or check in
src/jsstddef.h!


git-svn-id: svn://10.0.0.236/trunk@2975 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 00:23:57 +00:00
mccabe
d032f71431 Cleanup of parseInt checkin, including comment changes. The code is
now a little more explit about when it expects js strings to be
null-terminated.


git-svn-id: svn://10.0.0.236/trunk@2964 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 23:21:08 +00:00
shaver
aca06adb66 tracking ref fixes: XDR and jsnum
git-svn-id: svn://10.0.0.236/trunk@2349 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 14:24:39 +00:00
mccabe
d90f218a88 Fix to (83996), global parseInt function fails for numbers > 2^31.
It now passes all of the tests in 15.1.2.2-1 (except that parseInt
still has the .length property, which is a different bug) - so I'll
close the bug.

Still possibly at issue is whether we conform to ECMA language about
decimal numbers that are too large to fit in a double.  I treat
decimal digits after the 20th as zero, but there could be some
floating-point rounding wackiness going on.  In particular - are we
doing the right thing for numbers that are powers of 2, but larger
than 2^54, that are representable in a double?


git-svn-id: svn://10.0.0.236/trunk@2143 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:15:24 +00:00
fur
6e3cdaec31 Initial checkin of JavaScript 1.3, migrated from JSFUN13_BRANCH in /m/src repository
git-svn-id: svn://10.0.0.236/trunk@578 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 00:31:11 +00:00
ltabb
8ed5afe62c Free the lizard
git-svn-id: svn://10.0.0.236/trunk@10 18797224-902f-48f8-a5cc-f745e15eee43
1998-03-28 02:44:41 +00:00