clone-function
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -20,2 +20,16 @@ /* | ||
}); | ||
it('should throw an error for clones containing functions declared in blocks', function () { | ||
var func = function wee (arg) { | ||
if(true) { | ||
function blah () { | ||
return 10; | ||
} | ||
} | ||
return 'wee'; | ||
}; | ||
var fn = function () { | ||
cloneFunction(func); | ||
}; | ||
expect(fn).toThrow(); | ||
}); | ||
}); | ||
@@ -22,0 +36,0 @@ |
{ | ||
"name": "clone-function", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Clones non native JavaScript functions, or references native functions.", | ||
@@ -5,0 +5,0 @@ "main": "./src/clone-function.js", |
197337
3031