blob: 9d9a8f85b25f3329a927f0d1dc6da6b7bf6c3831 [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.
//-------------------------------------------------------------------------------------------------------
var litObj0;
var litObj1;
function test0(){
var obj1 = {};
//Snippet 2: more arguments than formal parameters
obj1.prop0 = (function(x) {
var fPolyProp = function (o) {
if (o!==undefined) {
WScript.Echo(o.prop0 + ' ' + o.prop1 + ' ' + o.prop2);
}
}
fPolyProp(litObj0);
fPolyProp(litObj1);
return 1 + x;
})(1.1,1,1.1);
};
// generate profile
test0();
// run JITted code
runningJITtedCode = true;
test0();