Actually make exec work
The spec for eval (http://es5.github.io/x15.1.html#x15.1.2.1) says "If Type(x) is not String, return x." and that's exactly what's happening here -- it gets {code: ...} and does nothing.
Ben Alpert committed
Sep 30, 2013 at 18:51 UTC
0a45325621da2b2c15e5a84ad497a94485c3c430
1 file changed
+1
-1
vendor/browser-transforms.js
+1
-1
@@ -29,7 +29,7 @@ var docblock = require('jstransform/src/docblock');
29
exports.transform = transform;
30
31
exports.exec = function(code) {
32
- return eval(transform(code));
32
+ return eval(transform(code).code);
33
};
34
35
if (typeof window === "undefined" || window === null) {