Permalink
Browse files

Use yui-istanbul as post-load hook as opposed to undocumented istanbu…

…l functions
  • Loading branch information...
1 parent b027937 commit 6e972fdbddd1f22e9d712dbf36406f165995149b @gotwarlost committed Feb 3, 2013
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/coverage/index.js
  2. +2 −1 package.json
View
3 lib/coverage/index.js
@@ -28,6 +28,7 @@ var util = require('util'),
log = require('../util/log'),
Y = require('./yui/index'),
istanbul = require('istanbul'),
+ yuiIstanbul = require('yui-istanbul'),
fs = require('fs');
function mix(cons, proto) {
@@ -145,7 +146,7 @@ mix(Istanbul, {
/*jslint nomen: true */
istanbul.hook.hookRequire(matchFn, transformFn, {
verbose: that.opts.verbose,
- postLoadHook: istanbul._yuiLoadHook(matchFn, transformFn, that.opts.verbose)
+ postLoadHook: yuiIstanbul(matchFn, transformFn, that.opts.verbose)
});
callback();
});
View
3 package.json
@@ -26,7 +26,8 @@
"nopt":"*",
"resolve":"*",
"async":"*",
- "istanbul": "*"
+ "istanbul": "*",
+ "yui-istanbul": "*"
},
"devDependencies":{
"rimraf":"*",

0 comments on commit 6e972fd

Please sign in to comment.