blob: b37843319033bff94be6fa0ff27366aa99b96299 [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.
//-------------------------------------------------------------------------------------------------------
// Testing constant prop into LdMethodFld
function Test1()
{
var a = new Object();
a.x = 1;
return a.x(); // Generate LdMethodFld, and 1 is copy prop'd here.
}
try
{
Test1();
}
catch (e)
{
WScript.Echo("PASS");
}