Bug 903180 - Simple fix. r=jwalden, a=lsblakk
authorTill Schneidereit <till@tillschneidereit.net>
Sat, 10 Aug 2013 23:21:43 +0200
changeset 153717 d303977a2b437dd880d35b21960c0016d8ed5791
parent 153716 90ab5f3fa14c57d734891becdf73c8222095b994
child 153718 a4dbc38c75101c4a83f6c42653aabbc7956d5c7e
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden, lsblakk
bugs903180
milestone25.0a2
Bug 903180 - Simple fix. r=jwalden, a=lsblakk
js/src/jsbool.cpp
--- a/js/src/jsbool.cpp
+++ b/js/src/jsbool.cpp
@@ -193,13 +193,12 @@ js::ToBooleanSlow(const Value &v)
 
 /*
  * This slow path is only ever taken for proxies wrapping Boolean objects
  * The only caller of the fast path, JSON's PreprocessValue, ensures that.
  */
 bool
 js::BooleanGetPrimitiveValueSlow(HandleObject wrappedBool, JSContext *cx)
 {
-    JS_ASSERT(wrappedBool->is<ProxyObject>());
-    JSObject *obj = Wrapper::wrappedObject(wrappedBool);
+    JSObject *obj = wrappedBool->as<ProxyObject>().target();
     JS_ASSERT(obj);
     return obj->as<BooleanObject>().unbox();
 }