Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
try { | ||
// node 0.6+ | ||
module.exports = require('../build/Release/libxmljs'); | ||
} catch (e) { | ||
// node 0.4.x | ||
module.exports = require('../build/default/libxmljs'); | ||
} | ||
module.exports = require('bindings')('libxmljs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a802562
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#144 issue still shows with this patch:
└─┬ libxmljs@0.6.1
└── bindings@1.0.0
node@v0.9.3
npm@1.1.64
Ubuntu@11.04
a802562
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a802562
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to build the library first. The bindings module just allows us to avoid some basic code duplication, it doesn't build the module for you.
Also, you are using an unstable version of node. While I don't discourage this, I will say that its behavior may change between now and when it is released and therefore some things that may seem broken now won't be. I would suggest checking out the bindings module to make sure it is still reporting the right errors on 0.9.