summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/var-multiple-declarator.js
blob: e4cac238c50f56a6d6a74acb668e46d2cf5336f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
load("test-common.js");

try {
    var a = 1, b = 2, c = a + b;
    assert(a === 1);
    assert(b === 2);
    assert(c === 3);
    console.log("PASS");
} catch (e) {
    console.log("FAIL: " + e);
}