Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'support_node_v6' of https://github.com/walf443/node-msg…

  • Loading branch information...
commit 1b1208e44e5a7ffaaf6ce6ef406ba153caf56d68 2 parents c61233d + 8caf6d6
Karl Seguin authored

Showing 1 changed file with 13 additions and 2 deletions. Show diff stats Hide diff stats

  1. +13 2 lib/msgpack.js
15 lib/msgpack.js
@@ -2,8 +2,19 @@
2 2
3 3 var buffer = require('buffer');
4 4 var events = require('events');
5   -var mpBindings = require('../build/default/mpBindings');
6   -var sys = require('sys');
  5 +var mpBindings;
  6 +try {
  7 + // Node v0.5.5 or later
  8 + mpBindings = require(__dirname + "/../build/Release/mpBindings");
  9 +} catch(e) {
  10 + mpBindings = require(__dirname + '/../build/default/mpBindings');
  11 +}
  12 +var sys;
  13 +try {
  14 + sys = require('util');
  15 +} catch (e) {
  16 + sys = require('sys');
  17 +}
7 18
8 19 var pack = mpBindings.pack;
9 20 var unpack = mpBindings.unpack;

0 comments on commit 1b1208e

Please sign in to comment.
Something went wrong with that request. Please try again.