| Index: tools/codemap.js
|
| diff --git a/tools/codemap.js b/tools/codemap.js
|
| index fa6c36b50b9a1a1c8e52adab2da993909ef9b795..0f73204a4f5c2e768d3288c08a828fb1a16d47df 100644
|
| --- a/tools/codemap.js
|
| +++ b/tools/codemap.js
|
| @@ -25,6 +25,10 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +// Node imports
|
| +if (typeof module !== 'undefined' && module.exports) {
|
| + SplayTree = require('./splaytree');
|
| +}
|
|
|
| /**
|
| * Constructs a mapper that maps addresses into code entries.
|
| @@ -292,3 +296,8 @@ CodeMap.NameGenerator.prototype.getName = function(name) {
|
| var count = ++this.knownNames_[name];
|
| return name + ' {' + count + '}';
|
| };
|
| +
|
| +// Node exports
|
| +if (typeof module !== 'undefined' && module.exports) {
|
| + module.exports = CodeMap;
|
| +}
|
|
|