Commit Graph

53 Commits

Author SHA1 Message Date
Jim Blandy
96d7c2007b Bug 492849 - Implement Object.preventExtensions, Object.isExtensible. a=waldo,jimb, r=brendan
--HG--
rename : js/src/jsapi-tests/testSeal.cpp => js/src/jsapi-tests/testDeepFreeze.cpp
2010-09-21 11:35:29 -07:00
Brian Hackett
066d48b6b6 Backed out changeset 09ffb30caa47 2010-09-20 12:05:21 -07:00
Brian Hackett
e8819f33fa Make JSObject flexible length, bug 584917. r=brendan 2010-09-20 11:40:32 -07:00
Blake Kaplan
2cdbd6c122 Bug 597118 - Give proxy handler the ability to have an innerObject hook. r=gal
--HG--
extra : rebase_source : 5dd07ac858135c13e5399fff336d513791c1ded0
2010-08-23 15:34:11 -07:00
Blake Kaplan
2607e0162a Bug 597116 - We need to set vp for non-SHARED properties, even if they have a native getter. r=gal
--HG--
extra : rebase_source : 35cffbaf0517c7640278fc5109670dafa4f1d3e9
2010-09-16 11:45:55 -07:00
Blake Kaplan
67c5e81443 Bug 597114 - Actually pass the new value when calling setters and set argc correctly. r=gal
--HG--
extra : rebase_source : 596c02dff54a3608eba86213e4a80d97bf0f297b
2010-09-16 11:43:33 -07:00
Blake Kaplan
a49526d99e Bug 597109 - Deal with PropertyStub as being equivalent to NULL to mean "no getter" or "no setter". r=gal
--HG--
extra : rebase_source : 64ab966efeef8bff33307d91d6d173d2b617383c
2010-09-16 11:40:59 -07:00
Jim Blandy
2a3cf83056 Bug 537873, Bug 514574: Have strict mode code report TypeErrors for assignments, deletions. r=brendan
TODO: Fix error messages.
2010-09-15 13:43:55 -07:00
Luke Wagner
5e9978f911 Bug 581263 - remove slow natives (r=waldo,mrbkap) 2010-08-16 12:35:04 -07:00
Brendan Eich
790ddc9e99 Merge JSScope into JSObject and JSScopeProperty (now js::Shape; bug 558451, r=jorendorff). 2010-08-29 11:57:08 -07:00
Paul Biggar
6634b70997 Split object/function allocation paths to avoid branch (578158, r=brendan). 2010-08-09 09:11:22 -07:00
Igor Bukanov
b4a4d8d48e bug 579957 - parent as a field in JSObject (relanding after wixing bug 583404). r=lw 2010-07-31 11:54:01 +02:00
Robert Sayre
c7bd912564 Backed out changeset d8bbb2ef3038. (Igor Bukanov – bug 579957 - parent as a field in JSObject. r=lw) 2010-07-29 18:11:41 -07:00
Igor Bukanov
4eff9db05f bug 579957 - parent as a field in JSObject. r=lw 2010-07-29 19:11:27 +02:00
Igor Bukanov
2019c722fb bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Igor Bukanov
181c2cdf3a Backed out changeset 7b2b90efe57d -- the patch was landed against a tree with a lot of orange. This will hinder the orange resolution. 2010-07-28 14:36:06 +02:00
Igor Bukanov
a69fd0a49f bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Igor Bukanov
246300e968 bug 576596 - removal of JSObjectOps::(call|construct|hasInstance). r=jorendorff
--HG--
extra : rebase_source : 8fd09ab6bfb4daece7a27b9a46097ae74bdc055c
2010-07-07 09:53:50 +02:00
Luke Wagner
99411cc93d Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Igor Bukanov
fe84ed0d56 bug 572494 - removal of JSObjectOps::defaultValue, r=jorendorff 2010-07-07 09:53:47 +02:00
Andreas Gal
b890c190fb Make sure proxy objects always have a parent (576714, r=jorendorff). 2010-07-07 12:32:36 -07:00
Jason Orendorff
bc777c6d16 Bug 575208 - Crash [@ js::ExecuteFrameGuard::~ExecuteFrameGuard] or "Assertion failure: origin != destination". r=gal. 2010-07-02 16:51:42 -05:00
Andreas Gal
1efe5e2ec6 Implement runtime-wide wrap hook (574299, r=mrbkap). 2010-06-24 16:45:32 -05:00
Jason Orendorff
c1a1fb9be1 Bug 563099 - Compartments and wrappers API. r=gal.
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Brendan Eich
e672f52623 Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal). 2010-06-18 17:43:02 -07:00
Jason Orendorff
c7000f4f86 Bug 574013 - Change JSObjectOps::call to compute this even later in certain cases. (This will also facilitate implementint ES5 primitive this.) r=gal.
--HG--
extra : rebase_source : 2f588a571cc7970ae2119338e4abfc34bdd6fdc8
2010-06-23 12:08:34 -05:00
Jason Orendorff
46fecd5674 Bug 570169 - Part 2, add assertions that gcthings do not leak across compartments. r=gal.
--HG--
extra : rebase_source : eaa2aee559527dbca94c3279d256833d2293ca67
2010-06-16 16:13:28 -05:00
Jeff Walden
06de83b720 Bug 572577 - Generate only a proxy's enumerable properties by filtering a vector of all its properties in-place, without copying properties to a second vector. r=gal 2010-06-17 14:37:33 -07:00
Jeff Walden
e993047657 Bug 572577 - Convert proxy name-enumerating APIs to fill in vectors of names, rather than return JSIdArrays. r=gal
--HG--
extra : rebase_source : 5df8f88b785d5c2974bcc89cf285f9791dfbb0c9
2010-06-16 16:11:13 -07:00
Andreas Gal
d79abfd782 Bug 572774 - NULL deref due to bug in js_Call, regression from bug 572495. r=jorendorff. 2010-06-17 13:15:18 -05:00
Igor Bukanov
a3a94a3484 bug 572411 - removal of JSObjectOps::checkAccess. r=mrbkap 2010-06-17 14:32:26 +02:00
Jason Orendorff
c80c81124a Merge backout. 2010-06-16 20:03:30 -05:00
Jason Orendorff
c1e349137a Back out changeset 4c1fbfcf1d0d due to orange. 2010-06-16 20:03:11 -05:00
Andreas Gal
02be8d79fb Compute 'this' in call ObjectOp so it can be overriden (572495, r=jorendorff). 2010-06-16 16:36:40 -07:00
Jason Orendorff
2d3b5bbe7a Bug 570169 - Part 2, add assertions that gcthings do not leak across compartments. r=gal. 2010-06-16 16:13:28 -05:00
Igor Bukanov
02fc618d59 bug 566836 - eliminating JSObjectOps::dropProperty. r=gal
--HG--
extra : rebase_source : cdffca0a863d8a3dddbc77335fc3cdac2eff9f4b
2010-06-05 23:24:54 +02:00
Andreas Gal
64497c9a69 Suppress deleted properties during iteration (569735, r=brendan). 2010-06-03 21:41:01 -07:00
Andreas Gal
3a5ff09808 Don't allow proxies to be fixed while handler traps execute (568473, r=igor). 2010-06-03 18:12:01 -07:00
Andreas Gal
7c92be3535 Rename JSNoopProxyHandler to JSWrapper and move it into jswrapper.[h|cpp] (568731, r=cdleary). 2010-06-03 15:27:29 -07:00
Jason Orendorff
a1e58bc1c7 Back out changeset 96dbe8a784f1 (bug 569735) due to failing tests. 2010-06-02 23:48:22 -07:00
Andreas Gal
a17cfb3b61 Suppress deleted properties during iteration (569735, r=brendan). 2010-06-02 20:11:56 -07:00
Andreas Gal
966cb32879 Don't re-run resolve hooks after a standard class was delete (569306, r=mrbkap). 2010-06-02 01:18:50 -07:00
Andreas Gal
3026562007 Improve error reporting for proxy handlers and __iterator__ (568966, r=brendan). 2010-05-29 19:04:01 -07:00
Andreas Gal
8aefb376a8 The iterate() trap of proxy handlers must return an object (568867, r=brendan). 2010-05-28 15:02:33 -07:00
Andreas Gal
22db0647cc Implement iterate trap for proxy handlers (568413, r=brendan). 2010-05-27 12:03:25 -07:00
Andreas Gal
e85c97aafb Stringify property names when invoking scripted proxy handlers (568051, r=mrbkap). 2010-05-27 12:01:55 -07:00
Andreas Gal
dcae10deae Make proxy API internal, allow JSObject::swap on functions (566818, r=brendan). 2010-05-24 14:33:03 -07:00
Andreas Gal
8e4c06cea9 Add a GC mark hook to C++ proxy handlers (567055, r=mrbkap). 2010-05-24 14:26:36 -07:00
Andreas Gal
0042312b1f Don't leak native getters/setters into property descriptor objects (566914, r=brendan). 2010-05-19 14:43:17 -07:00
Andreas Gal
4bcbe87597 Scripted proxy traps don't guarantee that numeric ids are JSVAL_INT (566806, r=brendan). 2010-05-19 00:21:04 -07:00