[Pkg-javascript-commits] [node-expat] 94/371: fix backwards compatibility for node 0.4.x
Jonas Smedegaard
dr at jones.dk
Sun Feb 28 09:59:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-expat.
commit 5f400760668c8d74adede64ff378a6369d6eef48
Author: Michael Weibel <michael.weibel at gmail.com>
Date: Thu Nov 10 08:15:06 2011 +0100
fix backwards compatibility for node 0.4.x
---
lib/node-expat.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/node-expat.js b/lib/node-expat.js
index 6eef0da..cad557f 100644
--- a/lib/node-expat.js
+++ b/lib/node-expat.js
@@ -1,6 +1,10 @@
var EventEmitter = require('events').EventEmitter;
var util = require('util');
-var expat = require('../build/Release/node-expat');
+try {
+ var expat = require('../build/Release/node-expat');
+} catch(e) {
+ var expat = require('../build/default/node-expat');
+}
/**
* Simple wrapper because EventEmitter has turned pure-JS as of node
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git
More information about the Pkg-javascript-commits
mailing list