summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/fields/multi-line-name.js
blob: 4697703a325f69cbf52185101e3d5070a8cbef47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test that multi-line property names don't trip up source location asserts.

class C {
    'line \
        continuation';

    'line \
        continuation with init' = 1;

    [1 +
        "bar"];

    [2 +
        "baz"] = 2;
}