Changed `create` API method to use `new Function()` instead of anindirect eval.

pull/361/head
Taylor Zane Glaeser 8 years ago
parent 9c93ea6c7a
commit 085f5fc81d

@ -57,7 +57,7 @@ export function create ( source, _options = {} ) {
let result;
try {
result = ( 1, eval )( compiled.code );
result = (new Function( 'return ' + compiled.code ))();
} catch ( err ) {
if ( _options.onerror ) {
_options.onerror( err );

Loading…
Cancel
Save