Commit Graph

483 Commits

Author SHA1 Message Date
Jason Orendorff
7fdeaf63be Bug 1113369, part 7 - [[SetPrototypeOf]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect. 2015-02-05 16:36:50 -06:00
Jason Orendorff
6e6ba315a5 Bug 1113369, part 6 - [[PreventExtensions]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect. 2015-02-04 12:01:01 -06:00
Jason Orendorff
20beb2cc48 Bug 1113369, part 5 - [[Delete]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect. 2015-02-04 10:20:04 -06:00
Jason Orendorff
b180889659 Bug 1113369, part 4 - [[Set]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect. 2015-02-03 19:51:40 -06:00
Jason Orendorff
1d3bb8fb3d Bug 1113369, part 3 - [[DefineOwnProperty]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
Add an ObjectOpResult out-param for DefineProperty functions everywhere. We leave a few js::DefineProperty() convenience functions with no *result out-param. These have strict behavior: that is, they automatically check the result and throw if it is false. In bug 1125624 these strict signatures may end up being called DefinePropertyOrThrow, as that is what the spec calls it.
2015-01-30 11:37:07 -06:00
Jason Orendorff
c9cc21f96d Bug 1130576 - Rename JSPropertyOp -> JSGetterOp and JSStrictPropertyOp -> JSSetterOp. r=efaust. 2015-01-30 13:56:15 -06:00
L. David Baron
4af4cfed3a Back out bug 1131802 (changesets 80e90f586329 and 35c268f162db) and patch 2 from bug 1131805 (changeset 4139522bf814) on a CLOSED TREE for assertion failures.
Assertion failure: (ptrBits & 1) == 0, at ../../dist/include/js/Value.h
:871
called from XrayCreateFunction
2015-03-06 15:14:52 -08:00
Boris Zbarsky
8d927838b6 Bug 1131802 part 2. Allocate functions with reserved slots for DOM Xrays so we can store the Xray wrapper reference in those slots instead of as the function parent. r=peterv 2015-03-06 16:33:31 -05:00
Jon Coppeard
a8ac736f3f Bug 1138874 - Generalise assertion that source object has a preserved wrapper r=bholley 2015-03-06 10:19:07 +00:00
Jon Coppeard
1ebfefb607 Bug 1138874 - Change ReparentWrapper() to avoid multiple JS objects pointing to the same native r=bholley 2015-03-05 13:39:53 +00:00
Jan de Mooij
b3f1ff13a2 Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
Boris Zbarsky
4b467fe204 Bug 1136520. Stop parenting Xray expando objects to a non-global. r=bholley 2015-02-26 09:40:08 -05:00
Boris Zbarsky
2ccb0732a6 Bug 1136345. Drop the parent arg from JS_NewObjectWithGivenProto and introduce a JS_DeprecatedNewObjectWithGivenProtoAndParent for the few cases that still pass in a custom parent. r=waldo 2015-02-26 09:40:08 -05:00
Boris Zbarsky
e24ae7c499 Bug 1136292 part 5. Stop passing a global as the parent arg to JS_NewObjectWithGivenProto in XPConnect. r=peterv 2015-02-26 09:40:07 -05:00
Nick Fitzgerald
86849557af Bug 1117242 - SavedFrame objects should do principal checks for every accessor; r=jimb,jandem,bz 2015-02-13 09:21:50 -08:00
Ryan VanderMeulen
a9b5048637 Backed out 7 changesets (bug 1117242) for mochitest failures.
Backed out changeset 694f7ac58964 (bug 1117242)
Backed out changeset b3f8122dd990 (bug 1117242)
Backed out changeset 442d41779bd8 (bug 1117242)
Backed out changeset ccf6dfe1ac75 (bug 1117242)
Backed out changeset 86421767cd26 (bug 1117242)
Backed out changeset 2f996950fb2f (bug 1117242)
Backed out changeset 4414e9d0b66b (bug 1117242)

CLOSED TREE
2015-02-06 13:40:53 -05:00
Nick Fitzgerald
06a2084505 Bug 1117242 - Part 5: Implement xray support for SavedFrame; r=bholley 2015-02-06 09:15:01 -08:00
Jason Orendorff
2e2ce24f6f Bug 1112778, part 2 - Rename js::DefaultValue -> js::OrdinaryToPrimitive. r=Waldo. 2014-12-18 05:02:30 -06:00
Tom Schuster
147cbd415a Bug 783829 - Remove getEnumerablePropertyKeys. r=efaust,bholley 2014-12-17 00:28:38 +01:00
Tom Schuster
a3bf7d8937 Bug 783829 - Change from Proxy iterate to enumerate. r=efaust,bholley 2014-12-17 00:28:38 +01:00
Jason Orendorff
ddde8586c6 Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett. 2014-11-22 12:23:39 -06:00
Jason Orendorff
6c66fe3b7e Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett. 2014-12-02 16:56:35 -06:00
Boris Zbarsky
ffbd31df6a Bug 1087851 part 1. Rename WrapNewBindingObject to GetOrCreateDOMReflector to make it clearer what it does. r=peterv for the idea; patch itself is just search-and-replace 2014-11-26 14:25:20 -05:00
Tom Schuster
977a743145 Bug 1091900 - Make GetIterator and others take an object as outparam. r=efaust 2014-11-19 01:44:03 +01:00
Tom Schuster
892aa58156 Bug 783829 - Rename Proxy enumerate trap to getEnumerablePropertyKeys. r=efaust 2014-11-14 16:21:12 +01:00
Tom Schuster
c913a24c50 Bug 993026 - Rename NewResolve to Resolve in browser. r=bz 2014-11-08 01:07:12 +01:00
Boris Zbarsky
9bf1eb6c29 Bug 1090749. Reverse the isSelfHosted test in XrayWrapper and jsapi.cpp. r=waldo 2014-10-29 17:00:48 -04:00
Boris Zbarsky
2adab31a77 Bug 1088002 part 3. Stop requiring JSPROP_PROPOP_ACCESSORS just to use stub accessors. r=waldo 2014-10-29 15:06:32 -04:00
Boris Zbarsky
28a09cbcd7 Bug 1088002 part 2. Change JS_DefineElement, JS_DefineProperty, JS_DefineUCProperty, JS_DefinePropertyById, and JS_DefineProperties to default to using JSNative accessors, not JSPropertyOp accessors. r=waldo 2014-10-29 15:06:31 -04:00
Boris Zbarsky
888ec64050 Bug 1087374. Make .wrappedJSObject on Xrays a JSNative accessor. r=bholley 2014-10-23 15:21:46 -04:00
Jeff Walden
33ab4b19be Bug 1052139 - Reorder the preventExtensions trap just after the [[Prototype]]-access traps. r=code-motion 2014-10-21 11:40:04 -07:00
Jeff Walden
7eab2a3226 Bug 1085566 - Make the preventExtensions hook return succeeded/failed rather than always indicate failure by reporting an error. r=efaust 2014-10-19 01:18:43 -07:00
Jeff Walden
ad24a6a495 Bug 1052139 - Implement the ability to prevent modifying an extensible object's [[Prototype]]. r=efaust, r=bholley 2014-09-23 13:03:40 -07:00
Carsten "Tomcat" Book
d82ffbcf70 Backed out changeset 77ff6a4dd3f1 (bug 1052139) 2014-10-22 08:59:11 +02:00
Carsten "Tomcat" Book
77dee816cc Backed out changeset 9e900e87b4bb (bug 1085566) 2014-10-22 08:59:09 +02:00
Carsten "Tomcat" Book
6b7490c4d7 Backed out changeset 4eee647a5bd4 (bug 1052139) 2014-10-22 08:59:05 +02:00
Jeff Walden
5ca615d0c4 Bug 1052139 - Reorder the preventExtensions trap just after the [[Prototype]]-access traps. r=code-motion 2014-10-21 11:40:04 -07:00
Jeff Walden
58c90aac1c Bug 1085566 - Make the preventExtensions hook return succeeded/failed rather than always indicate failure by reporting an error. r=efaust 2014-10-19 01:18:43 -07:00
Jeff Walden
7b088a79a1 Bug 1052139 - Implement the ability to prevent modifying an extensible object's [[Prototype]]. r=efaust, r=bholley 2014-09-23 13:03:40 -07:00
Bobby Holley
95313c9a25 Bug 1084656 - Properly propagate exceptions out of getExpandoObjectInternal. r=bz 2014-10-21 11:59:30 +02:00
Jason Orendorff
6b4db7d3a8 Bug 1082672, part 4 - Change XrayWrapper code to be able to resolve symbol-keyed methods. r=bz, r=bholley. 2014-09-18 12:30:38 -05:00
Jason Orendorff
74f6308ca4 Bug 1081280 - Rename BaseProxyHandler::keys -> getOwnEnumerablePropertyKeys. r=efaust. 2014-10-08 22:01:55 -05:00
Jason Orendorff
448bc4a4ce Bug 1026918, part 2 - Rename js::GetPropertyNames -> GetPropertyKeys. r=efaust. 2014-09-26 19:39:35 -05:00
Jason Orendorff
5823a20a9a Bug 1026918, part 1 - Rename BaseProxyHandler::getOwnPropertyNames -> ownPropertyKeys to match the ES6 [[OwnPropertyKeys]] internal method. r=efaust, r=bz.
Also renamed in this patch:

ENUMERATE_IF_DEFINED -> ADD_KEYS_IF_DEFINED
XrayEnumerateAttributesOrMethods -> XrayAttributeOrMethodKeys
XrayEnumerateNativeProperties -> XrayOwnNativePropertyKeys
XrayEnumerateProperties -> XrayOwnPropertyKeys
WrapperOwner::getPropertyNames -> getPropertyKeys

These make sense because JSITER_* flags are involved; the functions in
question are not for finding enumerable properties only.
2014-09-26 15:16:36 -05:00
Bobby Holley
342d0710f0 Bug 1065185 - Expand XrayWrapper console messages for COWs. r=bz 2014-10-03 10:05:51 +02:00
Peter Van der Beken
3b4afc744e Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, stop forwarding sets to Traits. r=bholley. 2014-09-15 16:52:11 +02:00
Peter Van der Beken
487915a1b7 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, make Xrays walk the prototype chain when resolving DOM properties. r=bholley.
* * *
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, remove obsolete code. r=bholley.
2014-09-15 16:51:40 +02:00
Peter Van der Beken
0853409783 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, move some code around. r=bholley. 2013-10-18 13:22:08 +02:00
Peter Van der Beken
4b8b0c89fb Bug 1067501 - Make stringification of DOM Xrays use Object.prototype.toString. r=bholley. 2014-09-15 16:45:38 +02:00
Bobby Holley
f204dd3faa Bug 1065811 - Expose isCallable()/isConstructor() in JS_PUBLIC_API. r=billm 2014-09-25 13:13:28 +02:00