Commit Graph

1159 Commits

Author SHA1 Message Date
shaver%netscape.com
826cb30406 having evicted default.js from components/, we reclaim our *.js birthright 1999-09-21 22:10:03 +00:00
brendan%mozilla.org
8e655a2992 JS_VERSION 140 lacked JS_HAS_NUMBER_FORMATS #define. 1999-09-21 21:33:38 +00:00
shaver%netscape.com
1a3efafe34 turn on JS loader on Windows 1999-09-21 20:08:38 +00:00
shaver%netscape.com
4a5a6fe48f fixed Windows makefile goop and fixed __stdcall issue 1999-09-21 19:42:09 +00:00
rogerl%netscape.com
d6ea115852 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
aacd538f0b Errors-as-Exceptions and catchguards, because people want/need them 1999-09-21 18:48:43 +00:00
brade%netscape.com
efff4a9f90 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
97aaae768d First Checked In. 1999-09-21 14:55:39 +00:00
shaver%netscape.com
b472e3d9ce define some key names locally until we export them properly from xpcom 1999-09-21 14:54:39 +00:00
shaver%netscape.com
32d3521175 remove unused file and add initial windows build foo 1999-09-21 14:43:45 +00:00
shaver%netscape.com
fae1a32ebc add include of nsIModule.h -- why was this working before? 1999-09-21 14:38:50 +00:00
shaver%netscape.com
320f129e1c fix =/== idiocy, abort if we fail to get runtime and better diagnostics 1999-09-21 14:36:40 +00:00
waterson%netscape.com
c3182c1f1c Add some curly braces so that the rest of the world can run. 1999-09-21 04:20:17 +00:00
shaver%netscape.com
ae64fff204 build JS component loader by default 1999-09-21 01:09:33 +00:00
shaver%netscape.com
a15321335a fix typo before I inflict it on the world 1999-09-21 01:08:21 +00:00
brendan%mozilla.org
94a86fe442 - 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
rogerl%netscape.com
2d8fcffd6b (Bug #13416)
Turned off 'super' keyword - was letting through some cut'n'pasted java
code quietly and blowing big chunks out of the codegen/interpreter later.
Anybody know why 'super' had an interesting value here? - there was no
support for it on any path that I could see.
1999-09-20 22:21:24 +00:00
norris%netscape.com
1cd4a572c8 Changes necessary to generate adapter classes to files with associated optimizer package. 1999-09-20 21:16:45 +00:00
jband%netscape.com
6cdf4e5e24 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
3f002f8658 fix a warning and add JS stack dumper with a test. 1999-09-20 07:32:32 +00:00
jband%netscape.com
088a1c4c70 - 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
4f7990cd94 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
e76f97345f Fix build whine. 1999-09-18 01:15:57 +00:00
slamm%netscape.com
6aeddbbe3b Add braces to avoid "ambiguous else" warning. 1999-09-18 00:13:02 +00:00
slamm%netscape.com
193556acc6 Fix build warning. 1999-09-18 00:10:11 +00:00
slamm%netscape.com
8e12b7890c Fix build warnings, but get it right. 1999-09-18 00:09:24 +00:00
colin%theblakes.com
395aba6051 Order of evaluation is undefined, hence two ++ in one statement is bad 1999-09-18 00:03:28 +00:00
slamm%netscape.com
ed10e955f3 Fix build warning. 1999-09-17 23:57:47 +00:00
brendan%mozilla.org
93816b3e7d 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
aee7910bc5 First Checked In. 1999-09-17 19:45:20 +00:00
waldemar%netscape.com
caf430e24d NOT IN BUILD. Made JSRef work as a Macintosh MPW tool 1999-09-17 19:45:07 +00:00
norris%netscape.com
04f902243f Fix comments. 1999-09-17 16:38:51 +00:00
norris%netscape.com
dcd67f150f fix comment 1999-09-17 16:37:35 +00:00
colin%theblakes.com
bb29690955 Remove OpenVMS specific code, its no longer needed 1999-09-17 11:53:11 +00:00
norris%netscape.com
f032d61748 Clearer example. 1999-09-17 06:12:45 +00:00
norris%netscape.com
7e3b0bb1bc Tutorial examples. 1999-09-17 05:54:27 +00:00
cls%seawood.org
d1453f5030 Undefined __P before redefining it. 1999-09-17 04:21:03 +00:00
rogerl%netscape.com
5291d8c9ba 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
91e826fe46 Shut up Linux compiler warnings 1999-09-16 08:16:21 +00:00
waldemar%netscape.com
e55fb72643 Updated standalone JS shell Mac project to remove accumulated breakage. Added debug build. 1999-09-16 07:54:01 +00:00
waldemar%netscape.com
8feda78b50 First Checked In. 1999-09-16 07:51:52 +00:00
waldemar%netscape.com
b50923f534 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
0b907a7d51 Turned on 64-bit integers on Mac 1999-09-16 07:13:23 +00:00
waldemar%netscape.com
b65ab6e437 Added ECMA number formatting 1999-09-16 07:12:30 +00:00
waldemar%netscape.com
ae87aea46b Added ECMA number formatting error message 1999-09-16 07:12:00 +00:00
waldemar%netscape.com
dddce9e3c3 Added NaN atom 1999-09-16 07:09:24 +00:00
waldemar%netscape.com
c5b0528299 Fixed Mac warnings 1999-09-16 07:08:49 +00:00
jband%netscape.com
88360fe5a9 fix for 13819 - missing a release 1999-09-14 22:51:04 +00:00
briano%netscape.com
f420cda7ac Whoops, deleted one too many endifs. 1999-09-14 00:10:22 +00:00
briano%netscape.com
0f77d2b30b General cleanup. 1999-09-13 23:49:27 +00:00