Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / inc-bracket-assign-subscript.js
blob53a5228b3d60ba92a7ddf4d176ce8ba9765a5f6b
1 description(
2 'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=95913">'
3 );
5 function testPreIncBracketAccessWithAssignSubscript()
7 var x = { property: -1 };
8 var y = { property: true };
9 ++x[x = y, "property"];
10 return x.property;
13 function testPostIncBracketAccessWithAssignSubscript()
15 var x = { property: -1 };
16 var y = { property: true };
17 x[x = y, "property"]++;
18 return x.property;
21 shouldBeTrue('testPreIncBracketAccessWithAssignSubscript()');
22 shouldBeTrue('testPostIncBracketAccessWithAssignSubscript()');
24 successfullyParsed = true;