blob: 9c5c5269b34e6c5ad08e2bb18ccc0ff7b82405f0 [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 propCacheTest()
{
var obj = {};
var matches = "aabccddeeffaaggaabbaabaabaab".match(/((aa))/);
for(var str in matches)
{
if(obj[matches[str]] !== undefined)
{
WScript.Echo("propertyFound");
}
}
return matches;
}
var props = propCacheTest();
for (var i = 0; i < props.length; i++)
{
WScript.Echo(props[i]);
}
CollectGarbage();
CollectGarbage();
CollectGarbage();
props = propCacheTest();
for (var i = 0; i < props.length; i++)
{
WScript.Echo(props[i]);
}