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
1999-09-20 05:25:52 +00:00
1999-09-16 11:32:19 +00:00
1999-09-18 02:55:39 +00:00
1999-09-15 20:27:10 +00:00
1999-09-20 04:50:18 +00:00
1999-09-20 21:35:50 +00:00
1999-09-20 21:02:01 +00:00
1999-08-12 03:28:00 +00:00
1999-09-17 18:41:34 +00:00
1999-09-11 03:12:45 +00:00
1999-09-20 22:12:35 +00:00
1999-09-14 01:35:43 +00:00
1999-09-17 22:12:46 +00:00
1999-09-04 00:01:42 +00:00
1999-09-15 22:13:45 +00:00
1999-09-20 06:11:36 +00:00
1999-09-15 22:29:43 +00:00
1999-08-10 05:16:39 +00:00
1999-09-18 01:05:35 +00:00
1999-09-21 00:08:25 +00:00
1999-09-20 21:36:01 +00:00
1999-09-20 22:39:52 +00:00
1999-09-18 03:01:07 +00:00
1999-09-18 02:55:39 +00:00
1999-09-11 04:50:16 +00:00
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
6 GiB
Languages
JavaScript 32.3%
C++ 25.5%
HTML 21%
C 10.8%
Python 2.8%
Other 7.1%