blob: c0fe5ba53c1415a4e6dfd229a646a1c25897ba88 [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 test0(){
var s = "aabbcc";
var r = new RegExp(/b/);
r.lastIndex = 15;
s.split(r);
WScript.Echo(r.lastIndex !== 15 ? "Pass" : ("Fail actual value: " + r.lastIndex));
}
test0();
test0();