Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed .define()ing of functions

  • Loading branch information...
commit 948bd4120f187871bf73a16414939d5edf4ee418 1 parent 21e225a
TJ Holowaychuk tj authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/utils.js
2  lib/utils.js
View
@@ -218,6 +218,8 @@ exports.unwrap = function(expr){
exports.coerce = function(val){
switch (typeof val) {
+ case 'function':
+ return val;
case 'string':
return new nodes.String(val);
case 'boolean':
Please sign in to comment.
Something went wrong with that request. Please try again.