79 Commits

Author SHA1 Message Date
warren%netscape.com
cf540377a4 Fixed copyright.
git-svn-id: svn://10.0.0.236/trunk@8252 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-20 07:58:32 +00:00
warren%netscape.com
9abf0ee471 Added from SpiderMonkey131_BRANCH of ns/js/ref/liveconnect
git-svn-id: svn://10.0.0.236/trunk@8251 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-20 07:58:00 +00:00
cls%seawood.org
4288391d23 AUTOCONF_1_0 landing.
git-svn-id: svn://10.0.0.236/trunk@8198 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-19 20:42:14 +00:00
danm%netscape.com
48600d89cf (optionally) include GlowCode lib. a:warren,fur
git-svn-id: svn://10.0.0.236/trunk@7448 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-06 18:52:34 +00:00
sudu%netscape.com
1119d39d7c Fix to build js classes when NSJVM=1.
git-svn-id: svn://10.0.0.236/trunk@7409 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-06 01:01:42 +00:00
beard%netscape.com
3b05b85628 Version check breaks HTML dialogs.
git-svn-id: svn://10.0.0.236/trunk@7329 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 05:25:12 +00:00
warren%netscape.com
35941018bd Changes to build with MOZ_OJI, and optionally build NSJVM. Changes to regenerate jar files. Changed version number to 50.
git-svn-id: svn://10.0.0.236/trunk@7285 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 00:36:13 +00:00
warren%netscape.com
379619f4e4 Fixed crashes in reporting errors on failure to initialize.
git-svn-id: svn://10.0.0.236/trunk@7269 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-04 21:37:16 +00:00
bjorn%netscape.com
30ead9145f Additional xpcom support for JS. Currently not in use by anyone. See MyScriptable.{h,cpp}
for an example of how to use this interface.


git-svn-id: svn://10.0.0.236/trunk@7252 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-04 20:34:20 +00:00
shaver%netscape.com
8899f4d056 added JSVERSION_1_4, removed prconv.sed NULs
git-svn-id: svn://10.0.0.236/trunk@7062 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:52:50 +00:00
warren%netscape.com
5e49404e07 Removed build of java classes.
git-svn-id: svn://10.0.0.236/trunk@6980 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:54:16 +00:00
warren%netscape.com
af74b07970 Fixed _jni dir problem
git-svn-id: svn://10.0.0.236/trunk@6976 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:22:43 +00:00
warren%netscape.com
20b5610704 Removed unzip step.
git-svn-id: svn://10.0.0.236/trunk@6972 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:12:32 +00:00
warren%netscape.com
3c42f93bf9 Landing changes in the OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag.
git-svn-id: svn://10.0.0.236/trunk@6967 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:19:50 +00:00
mccabe%netscape.com
cd73b6485a Another attempt to remove trailing nul characters added courtesy CVS.
git-svn-id: svn://10.0.0.236/trunk@6915 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 01:45:05 +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
warren%netscape.com
6cf0255e58 Committed from OJI_19980618_TIP_MERGE1.
git-svn-id: svn://10.0.0.236/trunk@6602 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 02:11:07 +00:00
bjorn%netscape.com
8b53ff3864 Restoring tree to previous version. Should not affect the build. The previous
checkin had no impact on the build either, but I'll wait with these changes until
the tree is open again. Sorry for the inconvenience.


git-svn-id: svn://10.0.0.236/trunk@6327 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:25:16 +00:00
bjorn%netscape.com
f507367ff5 New version of jsIScriptable.h (clobbers the old one). New files added for
testing (MyScriptable) and embedding support (JSWrapper,jsIScriptable,main).


git-svn-id: svn://10.0.0.236/trunk@6309 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:46:28 +00:00
warren%netscape.com
3ae4ac68e3 Added generated files for when we're not building java anymore.
git-svn-id: svn://10.0.0.236/trunk@6059 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 05:42:12 +00:00
shaver
469e36a3d2 more jsI?Context stuff, some Scriptable hackery
git-svn-id: svn://10.0.0.236/trunk@5597 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:59:47 +00:00
danm
99159ddc96 glowcode. bug 299200 a:don.
git-svn-id: svn://10.0.0.236/trunk@5225 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 16:33:15 +00:00
shaver
878a85e07b start at jsContext and jsRuntime implementations, enough to run trivial script
git-svn-id: svn://10.0.0.236/trunk@5148 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 16:53:49 +00:00
shaver
c00692bd31 forgot the NPL
git-svn-id: svn://10.0.0.236/trunk@4824 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 19:59:06 +00:00
shaver
d72485a1e5 adding XPCOM interface support (non-functional) -- not part of Gromit
git-svn-id: svn://10.0.0.236/trunk@4808 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:18:00 +00:00
atotic
8b49e55a21 Implemented MyReadLocation inline to remove the NavigatorStubs dependency
git-svn-id: svn://10.0.0.236/trunk@4610 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 23:35:01 +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
shaver
d0ef1a83a8 added JS_YieldRequest to API (me), and removed assertion in InitClass (mlm)
git-svn-id: svn://10.0.0.236/trunk@3565 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:39:58 +00:00
shaver
2bbfb94096 first arg to Script.prototype.exec is scopeobj, not second-with-ignored-first
git-svn-id: svn://10.0.0.236/trunk@3561 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:10:45 +00:00
fur
c4f601320e Replacement for stddef.h in the JS interpreter which defines ptrdiff_t to be 32 bits rather than 16 bits on Win16 only
git-svn-id: svn://10.0.0.236/trunk@3559 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 21:05:54 +00:00
norris
b7d3aba53f Fix 123552 Array length updating is incorrect
js> a = new Array()

js> a["3.00"] = "three"
three
js> a.length
4

Since "3.00" is not an array index as defined by ECMA, a.length should be 0.


git-svn-id: svn://10.0.0.236/trunk@3539 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-09 16:47:00 +00:00
norris
b44d1646cf Fix bug 104191 "ECMA: multiple params w/ same name":
Decompiling "function f(a,b,a) { ... }" would only print two parameters.


git-svn-id: svn://10.0.0.236/trunk@3519 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 23:41:54 +00:00
mccabe
afa5375ed6 ECMA fix to bug (93557). When excecuting the Function constructor,
treat all the 'arguments arguments' as if they were concatenated
together as a comma-separated list, and treat the list as if it were
the arguments list in a normal function declaration.  That is, allow
comments, arbitrary whitespace, etc.

Fixed by introducing a TokenStream instance in the Function contructor
code.


git-svn-id: svn://10.0.0.236/trunk@3500 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-08 19:04:17 +00:00
mccabe
84e1fd30b8 Added a few (JSOp) casts to appease Macintosh compiler workings.
Enums are types!


git-svn-id: svn://10.0.0.236/trunk@3150 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 00:22:55 +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
scc
d1e463682a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2965 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 23:54:58 +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
1403ada266 Conditionalized a (jsint) cast to ask JSDOUBLE_IS_NaN first -
hopefully avoiding a SIGPFE on Alpha Linux.  (And others?)


git-svn-id: svn://10.0.0.236/trunk@2335 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 04:53:37 +00:00
sfraser
4d3a73a6a0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2231 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:14:17 +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
matt
559c72d11b ifdef include on prosdep. If should not be dependent. Was breaking js/src builds
git-svn-id: svn://10.0.0.236/trunk@2141 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:41:18 +00:00
mccabe
f491c91092 Removed the escape and unescape functions, as they are now part of the
core engine.  (They've become part of the ECMA spec.)  Fix to (97681).


git-svn-id: svn://10.0.0.236/trunk@2006 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:25:41 +00:00
brendan
844e2114c4 Modernize README
git-svn-id: svn://10.0.0.236/trunk@1796 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-16 00:55:35 +00:00
mccabe
b8c778ab5e ECMA fix to (117144).
Array.prototype.sort(comparefn) was casting the result of the compare
to an int, which lost when the compare function returned (ecma-valid)
strange double values.  These now get clamped to -1, 0, 1.


git-svn-id: svn://10.0.0.236/trunk@1570 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:29:52 +00:00
mccabe
a603cb7869 Warning fix - added an (int16) cast to quiet a Windows warning.
git-svn-id: svn://10.0.0.236/trunk@1555 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:13:30 +00:00
mccabe
afa28896ca (Not part of the mozilla build process.)
Added support in the javascript shell for the #! unix script hack; if
the first line read by the shell (from a file, not interactive) starts
with #, the line is treated as a comment.

This should make
#!/usr/bin/js work...


git-svn-id: svn://10.0.0.236/trunk@1376 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 05:54:12 +00:00
mccabe
5332947894 Added #if defined ( SNI ) to a few existing #if tests, for compiling
on SINIX.


git-svn-id: svn://10.0.0.236/trunk@994 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 07:06:12 +00:00