blob: db9af61f99241eb51900ce0cb937e68569fb8801 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
description(
'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=91270">'
);
function postIncDotAssignToBase()
{
var obj = { property: 0 };
var base = obj;
base = base.property++;
return obj.property === 1;
}
function postIncBracketAssignToBase()
{
var obj = { property: 0 };
var base = obj;
var subscript = "property";
base = base[subscript]++;
return obj.property === 1;
}
function postIncBracketAssignToSubscript()
{
var obj = { property: 0 };
var base = obj;
var subscript = "property";
subscript = base[subscript]++;
return obj.property === 1;
}
shouldBeTrue('postIncDotAssignToBase()');
shouldBeTrue('postIncBracketAssignToBase()');
shouldBeTrue('postIncBracketAssignToSubscript()');
successfullyParsed = true;
|