Commit Graph

296 Commits

Author SHA1 Message Date
norris%netscape.com
9ff1d1f26d Previous checkin was mistaken; back it out. 1998-09-04 00:47:22 +00:00
norris%netscape.com
984ac268fd Add support for ECMA switch statements. These are like LISP cond in that they
evaluate the case label each time.
Still to do is to optimize so that TABLESWITCH and LOOKUPSWITCH are created
when possible.
1998-09-04 00:45:21 +00:00
rogerl%netscape.com
801d3e6ac9 Removed redundant #undef 1998-09-03 22:50:55 +00:00
cyeh%netscape.com
4379809e93 remove JSJDebug.o and JSJ.o files from all targets. also turn modification date caching off to fix dependencies not working 1998-09-03 20:53:27 +00:00
rogerl%netscape.com
4c0b7cffd9 New errorNumber handling.
Fixed bug #317398, for loop without condition wasn't decompiling the body
correctly since the first statement in that body was getting eaten by
mistake when trying to consume the condition expression.
1998-09-03 20:44:55 +00:00
rogerl%netscape.com
f4649b191c New errorNumber handling 1998-09-03 20:35:41 +00:00
rogerl%netscape.com
474bde20c3 New break-out of error message text from core engine 1998-09-03 20:33:32 +00:00
rogerl%netscape.com
6b0757f6fe New errorNumber handling 1998-09-03 20:29:37 +00:00
fur%netscape.com
bdab8cdd7b Backing out check-in of these files that are causing pain with Mozilla builds,
at least until we can properly control search paths on the Mac.
1998-09-03 07:28:30 +00:00
cyeh%netscape.com
a3449255d5 re-arranged search path so that :dist is searched before the local project folder. 1998-09-03 05:01:40 +00:00
fur%netscape.com
5e80fa90d7 Added Mac-specific defines. 1998-09-03 03:52:13 +00:00
fur%netscape.com
18dd63c61f *** empty log message *** 1998-09-03 03:51:38 +00:00
fur%netscape.com
97a8da12c8 Ignore generated files 1998-09-03 03:47:13 +00:00
fur%netscape.com
7640690581 Checked in wrong version of project by mistake. This is the right one. 1998-09-03 03:46:25 +00:00
fur%netscape.com
cafc3c054c Added comments and declaration of PR_Abort(). 1998-09-03 03:40:50 +00:00
fur%netscape.com
5927643e70 Project files to build standalone JS using mini-NSPR 1998-09-02 22:38:20 +00:00
fur%netscape.com
21b788956e Minimal NSPR subset required to build JS engine 1998-09-02 22:37:14 +00:00
fur%netscape.com
b73da9e0ca ignore generated files 1998-09-02 22:36:05 +00:00
mccabe%netscape.com
30521bb1b0 Further exception work - added 'message' to the js_ErrorToException
call, and experimented with copying the original JSErrorReport into
private data.  Much of this to support a toString method for exception
objects.

It's not polished, but I wanted to get toString available quickly.
1998-09-02 20:01:34 +00:00
mccabe%netscape.com
5569d89bd7 Another platform!
Thanks go to Marc Fraioli <fraioli@dg-rtp.dg.com> for
the initial port of the js/ref standalone javascript
engine to DG/UX.
1998-09-02 08:19:31 +00:00
mccabe%netscape.com
f9f7609482 Fixes for NetBSD and OpenBSD.
Thanks Marco S Hyman <marc@snafu.org>.
1998-09-02 07:56:50 +00:00
bjorn%netscape.com
501ca3dfad Added compare-and-swap patches for AIX (_check_lock) and Solaris (stbar). 1998-09-01 20:21:11 +00:00
shaver%netscape.com
a6a11ab6e9 if throwing, cx->exception is a valid root 1998-09-01 12:38:59 +00:00
mccabe%netscape.com
7505b29f0e restore npl. 1998-09-01 01:16:45 +00:00
mccabe%netscape.com
45051d3191 More runtime errors now bound to exceptions.
Most of these will require a second look, but I wanted to get all of
them (that need exceptions) throwing something interesting.
1998-09-01 01:15:16 +00:00
beard%netscape.com
811374c6e8 The equals method isn't native in the Mozilla tree. 1998-08-31 23:39:51 +00:00
beard%netscape.com
603876aec5 Changed JavaPackage_resolve so that it doesn't return immediately if quiet_resolve_failure is true. Otherwise, pre_define_java_packages fails. 1998-08-31 23:39:04 +00:00
warren%netscape.com
f20a6b1050 Added jsj_JavaMember.c (Changes from SpiderMonkey131_BRANCH of js/ref/liveconnect.) 1998-08-31 20:17:31 +00:00
beard%netscape.com
35cb9e3602 Changes from SpiderMonkey131_BRANCH of ns/ref/liveconnect. 1998-08-31 20:15:32 +00:00
beard%netscape.com
a54a6f0b5b Added jsj_JavaMember.c (Changes from SpiderMonkey131_BRANCH of ns/ref/liveconnect.) 1998-08-31 20:12:42 +00:00
mccabe%netscape.com
91997034dc Further runtime error work... expose many new errors as catchable
exceptions.  Mostly syntax errors, so far.  Fixed missing #if
JS_HAS_ERROR_EXCEPTIONS
1998-08-31 09:49:43 +00:00
mccabe%netscape.com
25da47211e Added a call to js_ErrorToException to
the compile-error reporting mechanism,
providing a way to associate exceptions
(very likely SyntaxError exceptions)
with compile-time errors.

(Hopefully this is temporary, as I'd
prefer one central place in the
error-reporting process to put the
js_ErrorToException call.)

Also changed the error reporter in js.c
to only ignore error reports marked with
the JSREPORT_EXCEPTION advisory flag when
the error occurs during javascript execution.

If it's at the toplevel compilation
level, then the error is still reported
(and the exception discarded.)

The api is feeling slightly dirtier, but
it still seems like the best
compromise...
1998-08-31 08:17:40 +00:00
mccabe%netscape.com
b629e66f24 Added jsmsg.def to the list of files used by the
'make tar' target.
1998-08-31 07:33:13 +00:00
mccabe%netscape.com
c6028e15e4 Made the enum JSErrNum into a typedef
enum JSErrNum, and changed a uintN
errorNumber declaration to JSErrNum.

It'd be nice to change the uintN
errorNumber field in JSErrorReport to
JSErrNum, but it's not clear that
JSErrNum is or should be exposed in the
API.  Any C esthetes want to offer their
opinions?

It made my debugger slightly happier.
1998-08-31 07:07:26 +00:00
fur%netscape.com
b10cffdc67 Shane's makefiles 1998-08-29 03:04:11 +00:00
fur%netscape.com
252890a523 New file to deal with case of Java field and method with same name. 1998-08-29 03:03:51 +00:00
fur%netscape.com
bb196a6370 Error messages, in separate file for internationalization purposes. 1998-08-29 03:03:05 +00:00
fur%netscape.com
9ded12bf7a Transferred work from private ns tree back into mozilla. 1998-08-29 03:00:50 +00:00
fur%netscape.com
3700db4e0b Somehow, montulli resurrected this dead file. Killing it again. 1998-08-29 02:47:25 +00:00
fur%netscape.com
2fe3a86224 Updated Mac build instructions. 1998-08-29 02:20:24 +00:00
fur%netscape.com
8388956274 Replaced with new CodeWarrior project file macbuild/JSRef.mcp 1998-08-29 02:20:00 +00:00
mccabe%netscape.com
05b8c5f49b More loose ends towards merging the development branch. 1998-08-29 01:53:39 +00:00
mccabe%netscape.com
29ace2903c New platforms! More work from development branch. 1998-08-29 00:40:07 +00:00
mccabe%netscape.com
845c56005f Propagate lots 'o work from the development branch.
Including:

Preliminary work on internationalizing error messages

Preliminary work on exposing runtime errors as catchable exceptions

ECMA-proposed throw and try/catch/finally, with multiple catch clauses
and catchguards

ECMA-proposed in/instanceof operators

IEEE-conformant number to string conversion

Fixes and other good stuff.
1998-08-29 00:38:43 +00:00
brendan%netscape.com
ba2ce62f00 Fix funky whitespace. 1998-08-27 01:48:25 +00:00
shaver%netscape.com
52c57fa8ce JS_ConstructObject: fill NULL proto/parent like JSOP_NEW would 1998-08-26 06:14:55 +00:00
cls%seawood.org
9020b80c52 Updates to autoconf files. 1998-08-26 04:04:57 +00:00
brendan%netscape.com
3d80897294 Fix typos, int type mismatch, white-space, and layout style nits. 1998-08-25 08:23:34 +00:00
brendan%netscape.com
84f02d394d Fix typos, white-space, and layout style nits. 1998-08-25 08:22:27 +00:00
brendan%netscape.com
06db42fb38 Propagate js/src back-out of fur's incompatible closure version-check mod. 1998-08-25 08:21:55 +00:00