Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix incorrect use of eval. (Thanks kangax!)

  • Loading branch information...
commit 30714e4704cf090cc291b4867f3f2705bfecca9d 1 parent bed3408
@tobie authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  VERSION
  2. +1 −1  assets/modulr.js
View
2  VERSION
@@ -1 +1 @@
-0.2.0
+0.2.1
View
2  assets/modulr.js
@@ -31,7 +31,7 @@ var modulr = (function(global) {
fn = _modules[id];
if (!fn) { throw 'Can\'t find module "' + identifier + '".'; }
if (typeof fn === 'string') {
- fn = eval('function(require, exports, module) {' + fn + '}');
+ fn = new Function('require', 'exports', 'module', fn);
}
fn(require, expts, modObj);
}
Please sign in to comment.
Something went wrong with that request. Please try again.