Permalink
Browse files

_ was not always replaced by __

  • Loading branch information...
1 parent 07052b1 commit 530bb833e88f2b85b278da3ebb4545f1cf94540c @bjouhier committed Oct 3, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/spoon/cfg.js
View
@@ -203,7 +203,11 @@ Cfg.prototype.asyncify = function asyncify(asts, options) {
instr.uses.length > 0)) {
return false;
}
- if (options.marker && block.fn.root.instr && block.fn.root.instr.params.indexOf('_') < 0) return false;
+ if (options.marker && block.fn.root.instr) {
+ var marker = block.fn.root.instr.params.indexOf('_');
+ if (marker < 0) return false;
+ block.fn.root.instr.params[marker] = '__$callback';
+ }
hasDeclaration[block.id] = block;
return true;

0 comments on commit 530bb83

Please sign in to comment.