Bug 1268805 - Followup: fix typo on a CLOSED TREE. (r=me)
☠☠ backed out by 03af61c547dd ☠ ☠
authorShu-yu Guo <shu@rfrn.org>
Fri, 29 Apr 2016 15:27:54 -0700
changeset 295580 b8a517eb7c6b700b6845a4f43e65cb2f0da58287
parent 295579 31075a760b2e8d517de2f16a163621c72549f3a6
child 295581 7d87fa0dc7edf93fb51253f287fb6709a029fb6d
push id19015
push usercbook@mozilla.com
push dateMon, 02 May 2016 09:39:23 +0000
treeherderfx-team@2080375bc69d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1268805
milestone49.0a1
Bug 1268805 - Followup: fix typo on a CLOSED TREE. (r=me)
js/public/Value.h
--- a/js/public/Value.h
+++ b/js/public/Value.h
@@ -648,17 +648,17 @@ PRIVATE_GCTHING_TO_JSVAL_IMPL(js::gc::Ce
     MOZ_ASSERT(JS::GCThingTraceKind(cell) != JS::TraceKind::Symbol,
                "Private GC thing Values must not be symbols. Make a SymbolValue instead.");
     MOZ_ASSERT(JS::GCThingTraceKind(cell) != JS::TraceKind::Object,
                "Private GC thing Values must not be objects. Make an ObjectValue instead.");
 
     jsval_layout l;
     MOZ_ASSERT(uintptr_t(cell) > 0x1000);
     l.s.tag = JSVAL_TAG_PRIVATE_GCTHING;
-    l.s.payload.cell = ptr;
+    l.s.payload.cell = cell;
     return l;
 }
 
 static inline bool
 JSVAL_IS_PRIVATE_GCTHING_IMPL(jsval_layout l)
 {
     return l.s.tag == JSVAL_TAG_PRIVATE_GCTHING;
 }