Permalink
Browse files

Updated Rhino to 1.7R2pre which fixed eval.call( window, "..." );

  • Loading branch information...
1 parent dda716d commit 5ccfa19d509b91fbb37509ccf341a84b5ef6a79f @jeresig committed Aug 3, 2008
Showing with 1 addition and 3 deletions.
  1. BIN rhino/js.jar
  2. +1 −3 src/env.js
View
Binary file not shown.
View
@@ -530,9 +530,7 @@ var window = this;
function execScripts( node ) {
if ( node.nodeName == "SCRIPT" ) {
if ( !node.getAttribute("src") ) {
- // We can't eval in a global context, in Rhino, so we
- // have to use a dirty hack.
- eval( node.textContent.replace(/\bvar /g, "") );
+ eval.call( window, node.textContent );
}
} else {
var scripts = node.getElementsByTagName("script");

0 comments on commit 5ccfa19

Please sign in to comment.