Permalink
Browse files

Better handling of fallback to sys, thanks Isaacs

  • Loading branch information...
1 parent 323d0e2 commit 0f11634ba902c6639bcedc2d017225cfcc287968 @miksago miksago committed Nov 11, 2010
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/_util.js
View
@@ -1,7 +1 @@
-module.exports = (function(){
- try {
- return require("util");
- } catch (e) {
- return require("sys");
- }
-})();
+module.exports = require(process.binding("natives").util ? "util" : "sys")

0 comments on commit 0f11634

Please sign in to comment.