summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug1247862.js
blob: 706253e94e1954271ba94ffc09fe98e3ffb6d8ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (!this.hasOwnProperty("TypedObject"))
  quit();

var T = TypedObject;
ValueStruct = new T.StructType({
    f: T.int32,
    g: T.Any
});
var v = new ValueStruct;
for (var i = 0; i < 2; i++) {
    var a = {};
    var b = v.f = 3;
    var c = v.g = a;
    assertEq(b === 3, true);
    assertEq(c === a, true);
}