Bug 1176137 - Expose protocol.js type registrations. r=vporof
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 19 Jun 2015 19:16:47 -0400
changeset 280600 aa13a5de46046cf8e58d37b00a01e7d7d8bd5164
parent 280599 a598e3c30b1afe3e3c1e8ed3d10a656eaa0873c8
child 280601 96669be6be1fd49491e4790959fabb9a46e3c4fd
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs1176137
milestone41.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 1176137 - Expose protocol.js type registrations. r=vporof
toolkit/devtools/server/protocol.js
--- a/toolkit/devtools/server/protocol.js
+++ b/toolkit/devtools/server/protocol.js
@@ -28,18 +28,18 @@ exports.emit = events.emit;
  * Types are referred to with a typestring.  Basic types are
  * registered by name using addType, and more complex types can
  * be generated by adding detail to the type name.
  */
 
 let types = Object.create(null);
 exports.types = types;
 
-let registeredTypes = new Map();
-let registeredLifetimes = new Map();
+let registeredTypes = types.registeredTypes = new Map();
+let registeredLifetimes = types.registeredLifetimes = new Map();
 
 /**
  * Return the type object associated with a given typestring.
  * If passed a type object, it will be returned unchanged.
  *
  * Types can be registered with addType, or can be created on
  * the fly with typestrings.  Examples:
  *