blob: db40f56618d62a5b35afe8fc9e713835ac7a7340 [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.
//-------------------------------------------------------------------------------------------------------
// Test to make sure field copy prop can deal with delete
"use strict";
function f() {
var x = new Object();
x.y = 1;
delete x.y;
if (x.y === undefined)
{
WScript.Echo("Pass");
}
return x;
}
function g(o)
{
delete o.y;
}
g(f());