blob: bd56c21b7896ae6f8f068f889591b889fd65d488 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function f() {
var x = { y: 0 };
g.escape();
function g() {
return eval('x.y');
}
}
var foo;
Function.prototype.escape = function () { foo = this; }
f();
if (foo() === 0) {
WScript.Echo('pass');
}