blob: 453602f012305db8a49cc8aa8742be73ab4b46c0 [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]);
}