Permalink
Browse files

Checked in eval which should have been checked in as previous commit.

  • Loading branch information...
1 parent b03294e commit bbc6a222196d0fc6479f888f17ae9f36a3460a37 @jbeard4 committed Nov 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/base-platform/eval.js
@@ -0,0 +1,5 @@
+module.exports = function(content,name){
+ //JScript doesn't return functions from evaled function expression strings,
+ //so we wrap it here in a trivial self-executing function which gets eval'd
+ return eval('(function(){\nreturn ' + content + ';})()');
+};

0 comments on commit bbc6a22

Please sign in to comment.