//------------------------------------------------------------------------------------------------------- | |
// 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"); | |
} |