summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/pipeline/eval.js
blob: 50f096b0f2ad9efb0ab21b17a3d1895ef5756161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const BUGNUMBER = 1405943;
const summary = "Implement pipeline operator (eval)";

print(BUGNUMBER + ": " + summary);

const testvalue = 10;

if (hasPipeline()) {
    eval(`
    // Pipelined eval should be indirect eval call
    (() => {
        const testvalue = 20;
        assertEq("testvalue" |> eval, 10);
    })();
    `);
}

if (typeof reportCompare === "function")
    reportCompare(0, 0);