Skip to content
Browse files

Modifications for eval

  • Loading branch information...
1 parent f31334a commit 644054e7a3c405fbedb5d436e5d554b99701dc1b @Ayms committed Dec 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/language/javascript.js
View
3 lib/language/javascript.js 100644 → 100755
@@ -6,7 +6,8 @@ var vm = require('vm');
exports.javascript = function(element, code, filename) {
try {
- vm.createScript(code, filename).runInContext(element._document._parentNode);
+ return vm.createScript(code, filename).runInContext(element._document._parentNode);
+
} catch(ee) {
console.log('error script ------------------'+(element._href||'timeout or onload or eval')+' '+code.substr(0,100));
element._document._queue_err.push(element);

0 comments on commit 644054e

Please sign in to comment.
Something went wrong with that request. Please try again.