Commit Graph

588 Commits

Author SHA1 Message Date
Eric Faust
eb76d911cb Bug 1027964 - Standardize proxy handler families. (r=jorendorff) 2014-08-27 17:09:06 -07:00
Bobby Holley
32092b5246 Bug 1050340 - Handle boxed values with a new proxy trap. r=luke 2014-08-18 14:18:39 -07:00
Dan Gohman
0b05c16dab Bug 1054334 - SpiderMonkey: Constify some static variables r=nbp 2014-08-18 12:20:42 -07:00
Dan Gohman
2bf0b05ad8 Bug 1054334 - SpiderMonkey: Delete unneeded semicolons r=nbp 2014-08-18 12:20:39 -07:00
Jon Coppeard
6e0d7b61ee Bug 650161 - Update pointers to relocated objects r=terrence 2012-06-05 11:47:42 -07:00
Ed Morley
d84861ec54 Backed out changeset 3adf62f886d9 (bug 650161) 2014-08-14 12:52:41 +01:00
Jon Coppeard
0df96e785c Bug 650161 - Update pointers to relocated objects r=terrence 2012-06-05 11:47:42 -07:00
Seth Fowler
6d30ddc363 Bug 913586 (Part 6) - Update Maybe users in js. r=luke 2014-08-13 15:42:00 -07:00
Jason Orendorff
52b304e825 Bug 1043690, part 1 - Provide helper function for HTMLDocument and HTMLFormElement proxies to use from [[Set]]. r=efaust 2014-07-29 20:27:18 -05:00
Bobby Holley
010d1c0e0a Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor 2014-07-30 12:23:03 -07:00
Bobby Holley
40abfc8866 Bug 965898 - Don't reuse the JSPropertyDescriptor in BaseProxyHandler::keys. r=gabor
This causes garbage from a previous lookup to propagate into subsequent lookups,
and creates confusing situations (like having both a value and a getter).
2014-07-30 12:23:03 -07:00
Bobby Holley
24a6a77567 Backed out 16 changesets (bug 965898) for rooting hazards. CLOSED TREE
Backed out changeset ac4abde3579f (bug 965898)
Backed out changeset c4c7ab1a2f70 (bug 965898)
Backed out changeset e0bf3598dfe1 (bug 965898)
Backed out changeset 8f2788a0ba24 (bug 965898)
Backed out changeset 0d1cda4decaa (bug 965898)
Backed out changeset 3d80ffc439fb (bug 965898)
Backed out changeset ad66ab36fe2d (bug 965898)
Backed out changeset dcf7ccf6eff2 (bug 965898)
Backed out changeset d3f02e80355d (bug 965898)
Backed out changeset 212f2d05d9e7 (bug 965898)
Backed out changeset c350a2c0aa6d (bug 965898)
Backed out changeset c75acd0663a9 (bug 965898)
Backed out changeset d68f7ef0ae69 (bug 965898)
Backed out changeset 610e6d6e1a88 (bug 965898)
Backed out changeset 54d40a30f6ad (bug 965898)
Backed out changeset 403a0e1d2324 (bug 965898)
2014-07-29 22:57:59 -07:00
Bobby Holley
4ed05f74bb Bug 965898 - Switch policies for get{,Own}PropertyDescriptor. r=gabor 2014-07-29 21:35:32 -07:00
Bobby Holley
60a0160b6c Bug 965898 - Don't reuse the JSPropertyDescriptor in BaseProxyHandler::keys. r=gabor
This causes garbage from a previous lookup to propagate into subsequent lookups,
and creates confusing situations (like having both a value and a getter).
2014-07-29 21:35:31 -07:00
Boris Zbarsky
d9044e7cd5 Bug 1021066. Make named setters work even for non-overridebuiltins bindings over Xrays. r=bholley,jorendorff 2014-07-23 01:06:33 -04:00
Eric Faust
eb88cd1af1 Bug 978279 - Implement revocation semantics. (r=jorendorff) 2014-07-22 14:10:31 -07:00
Eric Faust
680517faf1 Bug 978240 - Recomment remaining ES6 proxy traps. (r=jorendorff) 2014-07-22 14:10:30 -07:00
Bill McCloskey
0bd4266507 Bug 1017323 - Add-on interposition (r=bholley) 2014-07-14 22:10:05 -07:00
Chris Peterson
2ff2fed875 Bug 1036782 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src. r=jorendorff 2014-07-14 19:14:54 -07:00
Jan de Mooij
d5d769bfb3 Bug 1032238 - Make some API functions handle Latin1 strings. r=luke 2014-07-02 13:04:12 +02:00
Eric Faust
fdb84be9f3 Bug 1027402 - Part 4: Mark Proxy Handler uses const. (r=jorendorff, r=bz) 2014-06-27 04:44:08 -07:00
Eric Faust
122811aa1e Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz) 2014-06-27 04:44:06 -07:00
Eric Faust
51c149ff8f Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley, r=bz over IRC) 2014-06-27 04:44:04 -07:00
Eric Faust
abf1be407c Bug 1027402 - Part 1: Remove set* from BaseProxyHandler. (r=bholley) 2014-06-27 04:44:02 -07:00
Eric Faust
cc900ae45e Bug 1031243 - Remove FIXMEs invalidated by the removal of [[Origin]] from ES6. Comment only, DONTBUILD. (r=jorendorff) 2014-06-30 12:18:12 -07:00
Carsten "Tomcat" Book
226c1ea9df Backed out changeset 2c6403818106 (bug 1027402) for bustage on a CLOSED TREE 2014-06-27 14:21:46 +02:00
Carsten "Tomcat" Book
026215908a Backed out changeset 346912776f97 (bug 1027402) 2014-06-27 14:21:22 +02:00
Carsten "Tomcat" Book
6d91e7ccb9 Backed out changeset 285c853fedfa (bug 1027402) 2014-06-27 14:21:20 +02:00
Carsten "Tomcat" Book
729d8ef5a3 Backed out changeset 96443362db6f (bug 1027402) 2014-06-27 14:21:17 +02:00
Eric Faust
d9eb770555 Bug 1027402 - Part 4: Mark Proxy Handler uses const. (r=jorendorff, r=bz) 2014-06-27 04:44:08 -07:00
Eric Faust
7c512d564b Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz) 2014-06-27 04:44:06 -07:00
Eric Faust
7a21439f3d Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley) 2014-06-27 04:44:04 -07:00
Eric Faust
593b6e3f34 Bug 1027402 - Part 1: Remove set* from BaseProxyHandler. (r=bholley) 2014-06-27 04:44:02 -07:00
Jon Coppeard
329197b409 Bug 988486 - Make more GCRuntime state private and add necessary accessors r=terrence 2014-06-26 10:07:35 +01:00
Jason Orendorff
79ded004dc Bug 645416, part 27 - Implement Object.getOwnPropertySymbols(). r=Waldo. 2014-06-23 10:57:03 -05:00
Jason Orendorff
c027cced52 Bug 645416, part 25 - Add support for enumerating symbol-keyed properties. r=Waldo.
Object.keys, Object.getOwnPropertyNames, and for-in loops skip symbol-keyed
properties per spec, but Object.defineProperties sees them, and a future
Reflect.ownKeys API will need to be able to see them.

This patch changes the comments on JSITER_FOREACH and JSITER_KEYVALUE, but not
the behavior. The comments were just wrong.
2014-06-23 10:57:03 -05:00
Jason Orendorff
81534ea311 Bug 645416, part 24 - Modify proxy tests to add testing for symbol-keyed properties. r=efaust.
This patch also updates legacy direct proxies to cope with symbols. Uniform
behavior seems like the easiest thing to carry forward.
2014-06-23 10:57:02 -05:00
Eric Faust
4e8c9f8213 Bug 1007334 - Clean up the GetOwnPropertyNames/Keys situation for ES6 proxies. (r=jorendorff) 2014-06-19 15:34:02 -07:00
Eric Faust
2004ae94b3 Bug 980565 - Remove defunct Proxy.[[HasOwnProperty]]. (r=jorendorff) 2014-06-18 19:46:07 -07:00
Bobby Holley
1205082275 Bug 1020609 - Inherit property descriptor attributes for pre-existing own value props in Proxy::set. r=efaust 2014-06-11 15:16:06 -07:00
Eric Faust
244f1746ac Backout changesets 654a3fc28fa2 and 88fefd05fb64 (bug 1017862) for Cpp and mochitest failures on a CLOSED TREE. r=bustage 2014-06-09 15:48:55 -07:00
Eric Faust
4ed0d8d97e Bug 978229 - Remove now unused FromGenericPropertyDescriptor(). (r=Waldo over IRC) 2014-06-09 15:32:20 -07:00
Eric Faust
73397207c6 Bug 1017862 - Followup: Fix bustage on a CLOSED TREE. (r=Waldo over IRC) 2014-06-09 14:34:34 -07:00
Eric Faust
77ad589fce Bug 1017862 - Remove virtual destructor from BaseProxyHandler. (r=jorendorff) 2014-06-09 14:12:17 -07:00
Eric Faust
4d9738f538 Bug 978229 - Remove now unused NormalizeAndCompletePropertyDescriptor(). (r=Waldo) 2014-06-09 12:28:41 -07:00
Jason Orendorff
cb432bf614 Bug 904723, part 1 - Add new IsConstructor intrinsic for self-hosting. r=till.
This also renames js_IsCallable to js::IsCallable and does some related light
cleaning work.
2014-06-06 11:15:21 -04:00
Jason Orendorff
8836365bf4 Bug 1008441 - Make Object.defineProperty(proxy, desc) only parse desc once. r=efaust. 2014-06-06 11:15:21 -04:00
Jason Orendorff
201acb0e94 Bug 1017067 - Merge deleteProperty/deleteElement ops back into a single deleteGeneric op. r=bhackett. 2014-06-05 13:19:23 -04:00
Eric Faust
46c6024028 Bug 978238 - Part 2: Implement Proxy.[[GetOwnProperty]] to new ES6 standard. (r=jorendorff) 2014-06-03 13:23:03 -07:00
Eric Faust
a24a95eb09 Bug 978238 - Part 1: Clean up PropDesc<->PropertyDescriptor conversions. (r=jorendorff) 2014-06-03 13:23:02 -07:00