Jason Orendorff
75a71f51e8
Merge from mozilla-central to jsdbg2 branch.
2011-07-27 18:23:16 -05:00
Blake Kaplan
d87a8b11e5
Bug 673503 - Make sure the prototype here is in the right compartment. r=wmccloskey
2011-07-22 12:14:02 -07:00
Jason Orendorff
671bbf0bb1
Merge mozilla-central to jsdbg2.
2011-07-18 10:58:56 -05:00
Jason Orendorff
f5ce61ea3c
Merge from mozilla-central to jsdbg2.
2011-07-12 10:47:31 -05:00
Jason Orendorff
e5eb2cf8d7
Bug 665214 - Provide a js::GetOwnPropertyDescriptor function that populates a PropertyDescriptor. r=Waldo.
2011-07-11 20:22:25 -05:00
Bill McCloskey
a47ecc892e
Bug 671080 - Assert on unexpected cross-compartment pointers in opt builds (r=mrbkap)
2011-07-14 12:12:30 -07:00
Bill McCloskey
2a3d5215a6
Bug 662646 - GC topcrash diagnostics [needs backout before Aurora merge!] (r=dmandelin)
2011-07-07 17:31:24 -07:00
Luke Wagner
2ebc3262be
Bug 664951 - Weaken CallJSNativeConstructor again (r=waldo)
2011-06-17 16:51:52 -07:00
Jeff Walden
9d216339ba
Bug 646129 - [[DefaultValue]] on Date objects is wrong when called with no hint. r=luke
2011-04-01 15:24:21 -07:00
Josh Matthews
1e266b7afb
Bug 652803 - Check for existing proxy operations before attempting to fix a proxy object. r=gal
2011-05-05 21:55:25 +02:00
Jeff Walden
9361f3bfc8
Bug 653782 - Remove js_IndexToId, replace with an inline js::IndexToId. Also removes the redundant IndexToId in jsxml.cpp. r=igor
...
--HG--
extra : rebase_source : 4cb2b69a8f3d1877ca6514c8f9dfb3dc1af551b7
2011-04-30 03:19:26 -04:00
Igor Bukanov
8b0d367736
bug 605029 - ArenaHeader versus Arena<FreeCell> and other cleanups. r=wmccloskey
2011-04-20 07:30:10 +02:00
Paul Biggar
e4d6748cc4
Bug 642772: Don't recreate a class during enumeration, if it has been deleted (r=bhackett)
...
In SM, classes are lazily resolved. If we detect that a class about to be used
has not yet been resolved, then we resolve it. However, the way that we decided
that they were resolved was broken. If the global object had a String property,
then it had been resolved. So what happened when we deleted the String
property? Well, it got resolved again.
Instead of using the String property of the global object, we now use the
contructor slot on the global object. This works fine for String, but some
classes don't have a constructor, like Math and JSON. For those classes, we set
the constructor slot to True. In either case, we can now tell that a class is
resolved if the constructor slot in not Undefined.
2011-04-27 04:13:56 -07:00
Josh Matthews
5bac8b067d
Bug 600677 - Add fix hook to proxies. r=gal
2011-04-16 17:14:10 -04:00
Bill McCloskey
3c0cd83aa3
Bug 616666 - Use explicit stack for GC marking (r=gal)
2011-04-15 16:56:08 -07:00
Andreas Gal
fd2168c3af
Implement Harmony weak maps (bug 547941, r=jorendorff).
2011-04-16 21:23:44 -07:00
Andreas Gal
04ee44b4e6
for-in loop on proxy does not suppress properties deleted during enumeration (bug 600702, r=brendan)
2011-04-16 14:51:18 -07:00
Igor Bukanov
10724eed0a
Bug 641048 - adding proper constructor/destrictor to JSTHread/ThreadData 641048. r=luke r=mrbkap
2011-03-13 15:45:02 +01:00
Blake Kaplan
cfa571b106
Fix some stuff brendan pointed out.
2011-03-08 18:08:59 -08:00
Blake Kaplan
0ba7e969d0
Bug 639501 - Setters can cause the handler to change. r=gal
...
--HG--
extra : rebase_source : 5cef14e53e2f9032218c725538ba2afbf467191c
2011-03-08 15:05:11 -08:00
Jeff Walden
6de99f0675
Bug 638997 - Remove the id field from PropDesc: users who needed it should manage the id separately. r=luke
...
--HG--
extra : rebase_source : eb2152a2259a81bca1d7a4f5521787f9385a3c6f
2011-03-04 17:24:15 -08:00
Andreas Gal
29c7365b34
Make empty shape initialization lazy (bug 639254, r=billm).
2011-03-07 18:42:04 -08:00
Andreas Gal
751570828f
Mark watch points after the main GC phase (bug 639235, r=jorendorff).
2011-03-07 16:56:17 -08:00
Andreas Gal
532405b940
Remove ObjectOps trace hook (bug 639227, r=dvander).
2011-03-06 22:31:43 -08:00
Andreas Gal
831efbf9e8
Backout bug 639227 due to orange.
2011-03-06 21:37:13 -08:00
Andreas Gal
52c4d6513a
Remove ObjectOps trace hook (bug 639227, r=dvander).
2011-03-06 20:49:54 -08:00
Andreas Gal
700edc8d80
Proxies confuse clear and finalize (bug 637054, r=brendan).
2011-03-05 15:30:37 -08:00
Chris Leary
7cd988f331
Merge tracemonkey and mozilla-central. (a=blockers)
2011-02-11 09:56:19 -08:00
Andreas Gal
93b0cec1d3
Don't lose getter/setter attribute in default proxy set handler (bug 631488, r=brendan). a=blocker
2011-02-07 16:06:24 -08:00
Jim Blandy
de75b9fa19
Bug 537873: Add a 'strict' argument to C++ property setter functions. r=brendan
...
This changes the type of setters to JSStrictPropertyOp, which is just like
JSPropertyOp except that it takes a 'JSBool strict' argument. Most of the
patch is introducing distinct types and using the appropriate stubs.
The following are left for subsequent patches:
x Similar fixes to the browser outside SpiderMonkey.
x Actually *using* the newly available strictness information. This patch
should have no user-visible effect. I didn't want the interesting stuff
to get lost in this noise.
2011-02-09 11:31:40 -08:00
Andreas Gal
8d1e015485
Don't lose getter/setter attribute in default proxy set handler (bug 631488, r=brendan).
2011-02-07 16:06:24 -08:00
Blake Kaplan
9790bbbe74
Bug 629331 - Fix handling of class getters with slotful values. r=gal, r=brendan, a=blocker
...
try: -b do -p linux,win32 -u all
2011-02-03 20:13:18 -08:00
Jeff Walden
2da1a60948
Bug 619283 - Built-in JS methods must not box undefined or null into the global object when called, both to comply with ES5 and to prevent inadvertent global object exposure to secure JS variants. r=dmandelin, a=blocking
2011-01-26 13:37:45 -08:00
Andreas Gal
f2f643add9
In Proxy get(own)PropertyDescriptor return undefined if property doesn't exist (bug 582967, r=brendan/jorendorff).
2011-01-26 10:43:10 -08:00
Andreas Gal
b8f4800d4e
Rename Proxy enumerateOwn to keys (bug 600642, r=jorendorff,brendan).
2011-01-10 11:42:11 -08:00
Igor Bukanov
3e0168d2c2
Bug 620376 - ArrayToIdVector from jsproxy.cpp should check for operation callback invocations. r=gal
2010-12-21 11:21:26 +01:00
Andreas Gal
692cbf2420
Check for infinite recursion when running proxy handlers (bug 571168, r=jorendorff).
2010-12-13 14:53:44 -08:00
timeless@mozdev.org
e20561937b
Bug 606158 duplicate null check of construct in NewProxyObject. r=brendan.
2010-12-07 12:56:42 -06: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
Andreas Gal
a5b7649d5d
typeof(regexp from sandbox) is "function" (bug 607799, r=brendan).
2010-11-10 15:56:00 -08:00
Blake Kaplan
df7a668a02
Bug 571849 - Fix enumerateOwn and the Iterate constructor on Xray wrappers. r=gal
2010-11-10 14:08:44 -08:00
David Mandelin
885bc95c14
Bug 486653: fix minor warning for return value
2010-11-08 14:06:38 -08:00
Luke Wagner
0a6acc2075
Bug 607243 - JS_New should report error on primitive return; JSProxyHandler::construct should not call JS_New (r=brendan)
...
--HG--
extra : rebase_source : e81f0f4fbfbfafe40a5827f01a1e6bb92103bb64
2010-11-02 17:39:05 -07:00
Blake Kaplan
c0e2873909
Bug 596031 - 'this' is wrong in getters and setters when a proxy object is on the prototype chain. r=brendan/jorendorff/gal
...
--HG--
extra : rebase_source : 609b96c4b461e33f0f79dc74f714edfa882d1da0
2010-10-29 10:42:35 -07:00
Andreas Gal
a752defcd2
Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander).
...
--HG--
extra : rebase_source : fcb81dcb8d9d5bb3b03f10dd5209019db22f6944
2010-10-22 15:40:11 -07:00
Brian Hackett
f9cf7a5b7d
Flexible length JSObject, bug 584917. r=brendan,igor
2010-10-13 11:49:22 -07:00
Blake Kaplan
acf7a3ad20
bug 580128 - By default properties created by property assignment are enumerable. r=gal
2010-10-10 15:49:08 -07:00
Peter Van der Beken
579942e2b6
bug 580128 - Initialize vp before calling property op in JSProxyHandler::get. r=mrbkap
2010-10-10 15:46:34 -07:00