| //------------------------------------------------------------------------------------------------------- | |
| // Copyright (C) Microsoft. All rights reserved. | |
| // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | |
| //------------------------------------------------------------------------------------------------------- | |
| var escape; | |
| function test(param) | |
| { | |
| function outer() | |
| { | |
| function inner() | |
| { | |
| escape = nested; | |
| } | |
| inner(); | |
| } | |
| function nested() | |
| { | |
| return param; | |
| } | |
| outer(); | |
| } | |
| test("test1"); | |
| WScript.Echo(escape()); | |
| test("test2"); | |
| WScript.Echo(escape()); |