blob: fb90b6aafcaf75536096288f75e5b20abf42bd0a [file] [log] [blame]
description("Make sure we do a correct property resolution of a global object property when contained by eval.");
var pass = false;
var accessGlobal = (function() { return eval("var pass=true; (function(){ return pass; })"); })();
var accessLocal = (function() { var pass = false; return (function() { return eval("var pass=true; (function(){ return pass; })"); })(); })();
shouldBeTrue("accessGlobal()");
shouldBeTrue("accessLocal()");