Commits

Andrew Sutherland committed 722dd8b

bitrot: JS_SetPrivate lost the context argument

Comments (0)

Files changed (1)

add-jsprobemgr-class

 # HG changeset patch
-# Parent 4a664fc2c20368d4cef171afc80bf5d4503880fb
+# Parent bfb30c5e7f0b6bbc15cfbb4e45b66e01b7fe5fd8
 Add the ProbeManager class.
 
 diff --git a/js/src/Makefile.in b/js/src/Makefile.in
 diff --git a/js/src/jsprobedefs.cpp b/js/src/jsprobedefs.cpp
 --- a/js/src/jsprobedefs.cpp
 +++ b/js/src/jsprobedefs.cpp
-@@ -248,17 +248,17 @@ js::Value
+@@ -228,17 +228,17 @@ js::Value
  deserialize_intptr_t(JSContext *cx, ProbeValue v)
  {
      return js::DoubleValue((double)v.data.as_intptr_t);
 +{
 +    JS_ASSERT(JS_GET_CLASS(cx, obj) == &OrderBuilder_class);
 +
-+    JS_SetPrivate(cx, obj, order);
++    JS_SetPrivate(obj, order);
 +    return JS_TRUE;
 +}
 +
 +    memset(item, 0, sizeof(PickItem));
 +    *item = PickItem(probe, argn);
 +
-+    JS_SetPrivate(cx, obj, item);
++    JS_SetPrivate(obj, item);
 +    return JS_TRUE;
 +}
 +