Andreas Gal
fd2168c3af
Implement Harmony weak maps (bug 547941, r=jorendorff).
2011-04-16 21:23:44 -07:00
L. David Baron
0a579a3bbb
Back out changeset 7dcd0d16cc08 (bug 547941) for causing jsreftest crashes on debug builds.
2011-04-12 01:28:40 -07:00
Andreas Gal
55fc66a7e0
Bug 547941 - WeakMap. r=jorendorff.
2011-04-11 22:38:11 -07:00
Jeff Walden
02e7d876a5
Bug 636079 - Refactor JSON.stringify code to more closely conform to the specification, fixing a bunch of known problems in the process. r=pbiggar
...
Bugs fixed:
* toJSON is now invoked with an argument list consisting of the property name.
* In rare circumstances toJSON was invoked twice for a single object-valued
property. This error has now been corrected.
* Stringification no longer throws if the toJSON property of an object being
stringified is an object but is not callable.
* The replacer function is invoked exactly once for properties of objects
when those properties are stringified.
* If a replacer function is to be called, it will receive array indexes as
strings instead of numbers, per ES5.
Other improvements include:
* Speedier internal methods are used, rather than slow external APIs.
* Argument types are more specific (e.g. the "holder" argument is an object).
* Logic to determine when to call the replacer function is unnecessary and has
been removed.
--HG--
extra : rebase_source : 1f2ee9ff4c14edebda3e48d33d6df32fc44b701d
2011-02-18 03:34:34 -08:00
Luke Wagner
7c96945e3c
Bug 613457 - clean up string interfaces (r=njn)
...
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Luke Wagner
fee4a41733
Bug 616562 - speed up JSString::isStatic (r=njn)
...
--HG--
extra : rebase_source : 9f0b553b8ab54bfbbd5290ba936581bda8bb40ec
2011-03-14 13:55:55 -07:00
Michael Wu
b3db53f346
Bug 518230 - Use CESU-8 and refer to previous strings, r=igor
2011-03-21 11:06:34 -07:00
Andreas Gal
b8f4800d4e
Rename Proxy enumerateOwn to keys (bug 600642, r=jorendorff,brendan).
2011-01-10 11:42:11 -08:00
Dave Herman
509b20f136
bug 569487, r=gal: Reflect.parse(): custom builder object. NPOTB
2011-01-04 15:39:45 -08:00
Dave Herman
8d44347d5f
backing out due to red
2011-01-03 16:46:25 -08:00
Dave Herman
f1fe5f6fd2
bug 569487, r=gal: Reflect.parse(): custom builder object
2011-01-03 16:31:57 -08:00
Luke Wagner
d8719356c0
Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn)
2010-12-06 10:26:58 -08:00
Luke Wagner
2fc61cf52e
Bug 609440, part 3 - remove fallible public APIs, update mozilla (r=bent,jst,mrbkap,waldo,sdwilsh)
2010-12-03 00:24:17 -08:00
Jan de Mooij
59027dc8e7
Bug 604864 - Optimize undefined, NaN and Infinity in methodjit. r=dmandelin
2010-11-01 21:47:45 +01:00
Igor Bukanov
52ea348c4c
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-11 21:40:29 +01:00
David Anderson
7487c14d37
Backed out changeset 8e119f847f97 (build busted)
2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-02 15:36:25 +01:00
Dave Herman
7488e1af91
bug 594060, r=cdleary: Reflect.parse(): make source location information optional
2010-10-19 09:00:51 -07:00
Jeff Walden
0b9b58415c
Bug 575522 - Object.prototype.toString should return "[object Undefined]" and "[object Null]" when called with |this === undefined| or |this === null|, respectively. r=jorendorff,brendan
2010-10-12 11:50:03 -07:00
Igor Bukanov
dc286830a3
bug 595207 - making functionNamespaceURIAtom eager for simpler code. r=brendan
2010-09-15 16:55:35 +02:00
Nicholas Nethercote
dbed4dce2d
Bug 594108 - fix RegExp.exec()-to-RegExp.test() conversion. r=brendan.
2010-09-07 18:09:26 -07:00
Dave Herman
484e1a2751
bug 533874, r=jimb: expose the parser as a JS API
2010-06-15 13:32:32 -07:00
Jeff Walden
e1c811e568
Bug 584811 - Date.prototype.toJSON isn't to spec. r=sayrer
2010-08-13 10:42:31 -07:00
Luke Wagner
dd44050eb2
Bug 581875 - use js::HashSet in JSAtomState (r=igor)
2010-07-28 09:54:14 -07:00
Luke Wagner
4d78015a11
Backed out changeset 89dc3a238da0
2010-07-26 22:19:04 -07:00
Luke Wagner
d5094d4883
Bug 581875 - use js::HashSet in JSAtomState (r=igor)
2010-07-26 21:09:23 -07:00
Tom Austin
2ad03dfa62
Remove special constructs no longer needed for Narcissus (bug 579137, r=gal)
2010-07-16 18:16:07 -07:00
Jeff Walden
e26b5f2fa5
Bug 562446 - ES5: Array.prototype.toString and Array.prototype.toLocaleString should be generic. r=igor
...
--HG--
extra : rebase_source : 003f392af828817cba1d1153c2ed5d4e5402f5c3
2010-07-15 12:33:33 -05:00
Luke Wagner
99411cc93d
Bug 549143 - fatvals
2010-07-14 23:19:36 -07:00
Jeff Walden
0ee447d3dd
Bug 574992 - Make Date.prototype.toGMTString a normal, non-enumerable, non-alias property; also fixes a failure (with Object.getOwnPropertyNames support) in the MS ES5 tests. r=brendan
2010-06-26 14:08:58 -07:00
Jeff Walden
036e2b3101
Bug 570551 - Don't use shared-permanent properties to implement RegExp instance properties. r=jorendorff
2010-06-05 18:16:03 -07:00
Andreas Gal
22db0647cc
Implement iterate trap for proxy handlers (568413, r=brendan).
2010-05-27 12:03:25 -07:00
Andreas Gal
efd9bd790e
Implement ES Harmony Proxies (bug 546590, r=mrbkap).
2010-05-18 19:21:43 -07:00
Jeff Walden
00f6066393
Bug 552560 - Remove support for __parent__. r=mrbkap
2010-04-11 13:51:00 -07:00
Igor Bukanov
d14ffdc7bb
bug 560471 - remove GC_LAST_DITCH and GC_KEEP_ATOMS. r=jorendorff
2010-04-24 00:15:42 +02:00
Dave Herman
ed6c552bb7
Bug 558437 - rename JSCompiler to js::Parser (r=brendan).
2010-04-10 21:15:35 -07:00
Jeff Walden
ad6a89209e
Bug 517580 - Unconditionally build with support for getters and setters, remove support for the deprecated { x getter: function() {}} and x getter= function() {} getter syntaxes (mutatis mutandis for setter) now that ES5 provides Object.getOwnPropertyDescriptor and Object.defineProperty and { get x() { } } syntax, and provide __{define,lookup}{G,S}etter__ only if a preprocessor variable is defined (unconditionally provided for the moment). r=luke
2009-10-06 12:35:33 -07:00
Jeff Walden
adaaad82af
Back out 38cb39bc6744, 400097fb04e7, and 1dca6e135a1e for great orangeness.
2010-03-22 22:39:29 -07:00
Andreas Gal
40734e1d64
more build fun with bug 553541
2010-03-22 20:58:49 -07:00
Jason Orendorff
289a8b3513
Bug 530583 - Delete silly JS_INT32_TO_PTR etc. macros. r=jwalden.
...
--HG--
extra : rebase_source : ccd52d3c33a3fd984fb5588ef12cbf9a6a80c423
2010-03-16 10:41:28 -05:00
Jeff Walden
e2df507656
Bug 551529 - Remove __count__. r=shaver
2010-03-12 17:09:49 -08:00
Jim Blandy
60339bbd5a
Bug 514567: Define JSAutoAtomList, a variant of JSAutoAtomList with a destructor. r=jorendorff
2009-11-19 12:35:55 -08:00
Jim Blandy
34a27f0c88
Bug 514585: Recognize "use strict" directives. r=igor
2009-11-18 13:33:53 -08:00
Jeff Walden
c8f686672d
Bug 505587 - Implement ES5 Object.getOwnPropertyDescriptor. r=mrbkap
2009-07-21 19:35:59 -07:00
Andreas Gal
f552010935
Make js_ValueToString inline (503669, r=jwalden).
2009-07-13 14:55:04 -07:00
Jason Orendorff
bb1a005103
Bug 493260 - js1_5/Regress/regress-344959.js - with and eval do not inhibit the flat closure optimization. r=brendan.
2009-05-21 13:00:53 -05:00
Brendan Eich
962b187fe5
upvar2, aka the big one take 2 (452598, r=mrbkap).
2009-04-05 21:17:22 -07:00
Andreas Gal
706120c0fb
Backed out changeset 972c44aa9d1f (bug 452598).
2009-04-04 10:14:52 -07:00
Brendan Eich
5f4d9ff474
upvar2, aka the big one (452598, r=mrbkap).
2009-04-04 10:05:49 +01:00
Igor Bukanov
4ccdead266
bug 480700 - no more static asserts in headers. r=brendan
2009-03-05 12:12:50 +01:00