Commit Graph

23928 Commits

Author SHA1 Message Date
shaver@netscape.com
941c0d9182 having evicted default.js from components/, we reclaim our *.js birthright 1999-09-21 22:10:03 +00:00
brendan@mozilla.org
9b793c41c0 JS_VERSION 140 lacked JS_HAS_NUMBER_FORMATS #define. 1999-09-21 21:33:38 +00:00
shaver@netscape.com
a938911c55 turn on JS loader on Windows 1999-09-21 20:08:38 +00:00
shaver@netscape.com
14e96e2c7d fixed Windows makefile goop and fixed __stdcall issue 1999-09-21 19:42:09 +00:00
rogerl@netscape.com
b40738a160 ECMA errors as exceptions changes - conformance to latest spec for
hierarchy and names etc. Added attempt to make the base exceptions be
instanceof equal across contexts.
1999-09-21 18:58:51 +00:00
shaver@netscape.com
3fea37d19d Errors-as-Exceptions and catchguards, because people want/need them 1999-09-21 18:48:43 +00:00
brade@netscape.com
63def9edd0 not currently part of the build (a=leaf); add libraries for xpcom and js so optimized will link 1999-09-21 15:55:56 +00:00
brade@netscape.com
793f682367 First Checked In. 1999-09-21 14:55:39 +00:00
shaver@netscape.com
6a9442b784 define some key names locally until we export them properly from xpcom 1999-09-21 14:54:39 +00:00
shaver@netscape.com
31ea4e29bb remove unused file and add initial windows build foo 1999-09-21 14:43:45 +00:00
shaver@netscape.com
3ac23f634b add include of nsIModule.h -- why was this working before? 1999-09-21 14:38:50 +00:00
shaver@netscape.com
bd5b0b91f6 fix =/== idiocy, abort if we fail to get runtime and better diagnostics 1999-09-21 14:36:40 +00:00
waterson@netscape.com
96d3088832 Add some curly braces so that the rest of the world can run. 1999-09-21 04:20:17 +00:00
shaver@netscape.com
e2064c3e3a build JS component loader by default 1999-09-21 01:09:33 +00:00
shaver@netscape.com
2b826c12c1 fix typo before I inflict it on the world 1999-09-21 01:08:21 +00:00
brendan@mozilla.org
f19f7512e0 - Bumped default compile-time JS version from 1.4 to 1.5.
- Add JS1.5 getter/setter support in all its glory:

  * getter function SN() {return ++x} at top-level or as a closure binds an SN
    property getter than returns the incremented value of x.  Likewise for
    setter function SN(y) {return y = x}.

  * getters and setters may be defined in an object literal:
      o = {p getter:function() {return ++this.x},
           p setter:function(y){return this.x = y},
           x:42};

  * getter= and setter= operators (compound tokens) may be used to bind getter
    and setter properties dynamically:
      o = new Object;
      o.p getter= function() {return ++this.x};
      o.p setter= function(y){return this.x = y};
      o.x = 42;

    Waldemar is concerned that this form will collide semantically with JS2, so
    I am not committing to keeping it in JS1.5.  I'd like to check my code in
    ASAP so shaver can use it, and I'd also like to see this form get used (or
    not) during Mozilla betas.  Caveat emptor, and if you find this "dynamic"
    or "imperative" form necessary and hard to substitute, please let me know.
    If this proves important to users, then I think JS1.5 should keep it.

- Cleaned up property flags (in a binary-incompatible fashion -- who cares?) by
  eliminating JSPROP_ASSIGNHACK and JSPROP_TINYIDHACK.

- Added JS_DONT_PRETTY_PRINT flag to be ORed with the indent argument to the
  several JS_Decompile*() API calls.  This avoids any newlines or identation in
  the decompiled string.
 
- Improved and extended (for getter/setter non-reservation) scanner lookahead
  by using a circular (power-of-2 sized) token buffer.

- Fix ECMA Edition 3 deviation where function f(){function g(){}} bound f.g by
  mistake (it should arrange to make a closure named g in activations of f, but
  it should not bind a property of function f).
1999-09-21 00:13:48 +00:00
jband@netscape.com
08977bcc18 fix for bug 13426 - can now do 'new Components.classes.foo()' to create a new instance of a wrapped native 1999-09-20 20:59:38 +00:00
jband@netscape.com
c1714529ea fix a warning and add JS stack dumper with a test. 1999-09-20 07:32:32 +00:00
jband@netscape.com
8e3333dd78 - Changed the interface for getting the interface_is argnum.
- Merged the typelib types for array and array_with_length.
- Added typelib types for string_with_size and wstring_with_size
- Fixed array param conversion and cleanup - using two passes over the params where necessary.
- Added array conversions when calling wrapped JS objects.
- Added expanded array tests.
- Avoid repeated atomization of 'value' property name.
1999-09-20 02:51:16 +00:00
mccabe@netscape.com
bf4d6b0d16 Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.
1999-09-19 23:46:35 +00:00
slamm@netscape.com
029941322e Fix build whine. 1999-09-18 01:15:57 +00:00
slamm@netscape.com
c91c9a82a3 Add braces to avoid "ambiguous else" warning. 1999-09-18 00:13:02 +00:00
slamm@netscape.com
b923e17932 Fix build warning. 1999-09-18 00:10:11 +00:00
slamm@netscape.com
718534dbe9 Fix build warnings, but get it right. 1999-09-18 00:09:24 +00:00
colin@theblakes.com
6447fd516c Order of evaluation is undefined, hence two ++ in one statement is bad 1999-09-18 00:03:28 +00:00
slamm@netscape.com
94480f1014 Fix build warning. 1999-09-17 23:57:47 +00:00
brendan@mozilla.org
92db4e32dc Fix va_arg abusages (13676, thanks to ajoshi@glue.umd.edu and Franz.Sirl@munich.netsurf.de for the patch). 1999-09-17 23:46:20 +00:00
waldemar@netscape.com
57ec28b70e First Checked In. 1999-09-17 19:45:20 +00:00
waldemar@netscape.com
2963ad48c9 NOT IN BUILD. Made JSRef work as a Macintosh MPW tool 1999-09-17 19:45:07 +00:00
colin@theblakes.com
a2bf710f20 Remove OpenVMS specific code, its no longer needed 1999-09-17 11:53:11 +00:00
cls@seawood.org
7a4af875e2 Undefined __P before redefining it. 1999-09-17 04:21:03 +00:00
rogerl@netscape.com
aeb91f9519 Backed out preventing multiple var decls in for..in stmts - it impacted
all for stmts instead, duh.
1999-09-16 22:12:29 +00:00
waldemar@netscape.com
35ffb558fb Shut up Linux compiler warnings 1999-09-16 08:16:21 +00:00
waldemar@netscape.com
4bb5042892 Updated standalone JS shell Mac project to remove accumulated breakage. Added debug build. 1999-09-16 07:54:01 +00:00
waldemar@netscape.com
3f3132c913 First Checked In. 1999-09-16 07:51:52 +00:00
waldemar@netscape.com
693b2b714b 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. 1999-09-16 07:16:33 +00:00
waldemar@netscape.com
ca45a80f13 Turned on 64-bit integers on Mac 1999-09-16 07:13:23 +00:00
waldemar@netscape.com
b6dd584eb3 Added ECMA number formatting 1999-09-16 07:12:30 +00:00
waldemar@netscape.com
c797edf47b Added ECMA number formatting error message 1999-09-16 07:12:00 +00:00
waldemar@netscape.com
871b945324 Added NaN atom 1999-09-16 07:09:24 +00:00
waldemar@netscape.com
6e2d81305a Fixed Mac warnings 1999-09-16 07:08:49 +00:00
jband@netscape.com
05f04e445f fix for 13819 - missing a release 1999-09-14 22:51:04 +00:00
briano@netscape.com
9bed165bde Whoops, deleted one too many endifs. 1999-09-14 00:10:22 +00:00
briano@netscape.com
2516fba8a7 General cleanup. 1999-09-13 23:49:27 +00:00
rogerl@netscape.com
4542d630a2 Added define NES40 for server-related gc fixes 1999-09-13 21:08:26 +00:00
rogerl@netscape.com
fbcfe0ee66 Disallowed multiple variable declaration in for (var X in...) 1999-09-13 21:07:34 +00:00
cls@seawood.org
19814771a2 Add -D_POSIX_SOURCE to DEFS to get rid of those useless 'index shadow' warnings. Add either -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 to whichever Makefile.ins need it to accommodate for Posix' strictness. Add check for getopt.h for nsinstall.c. 1999-09-12 14:25:28 +00:00
jband@netscape.com
5162cf3d52 check resolve op for null before trying to use it 1999-09-11 05:22:42 +00:00
jband@netscape.com
ef3e8b861c unfinished array support. fixes for exceptions 1999-09-11 05:21:30 +00:00
briano@netscape.com
a0ef07f530 General cleanup. 1999-09-11 04:39:15 +00:00