blob: 4ca2682672539d6efa29140f9ff33cba5e8ab73c [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 producer() {
var x=3;
var z=function() {
WScript.Echo(x);
}
return z;
}
function consumer(f) {
f();
}
var clo=producer();
consumer(clo);