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 295501 b8a517eb7c6b700b6845a4f43e65cb2f0da58287
parent 295500 31075a760b2e8d517de2f16a163621c72549f3a6
child 295502 7d87fa0dc7edf93fb51253f287fb6709a029fb6d
push id75948
push usershu@rfrn.org
push dateFri, 29 Apr 2016 22:26:18 +0000
treeherdermozilla-inbound@b8a517eb7c6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1268805
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
 }