blob: 53a5228b3d60ba92a7ddf4d176ce8ba9765a5f6b [file] [log] [blame]
description(
'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=95913">'
);
function testPreIncBracketAccessWithAssignSubscript()
{
var x = { property: -1 };
var y = { property: true };
++x[x = y, "property"];
return x.property;
}
function testPostIncBracketAccessWithAssignSubscript()
{
var x = { property: -1 };
var y = { property: true };
x[x = y, "property"]++;
return x.property;
}
shouldBeTrue('testPreIncBracketAccessWithAssignSubscript()');
shouldBeTrue('testPostIncBracketAccessWithAssignSubscript()');
successfullyParsed = true;