2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`for.js 1`] = `
|
2017-01-13 21:00:32 +03:00
|
|
|
"for (;;) {}
|
|
|
|
for (var i = 0; i < 10; ++i) {}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-01-16 19:31:32 +03:00
|
|
|
for (;;) {
|
|
|
|
}
|
|
|
|
for (var i = 0; i < 10; ++i) {
|
|
|
|
}
|
2017-01-13 21:00:32 +03:00
|
|
|
"
|
|
|
|
`;
|
2017-01-22 23:34:14 +03:00
|
|
|
|
2017-03-09 00:18:13 +03:00
|
|
|
exports[`for.js 2`] = `
|
|
|
|
"for (;;) {}
|
|
|
|
for (var i = 0; i < 10; ++i) {}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for (;;) {
|
|
|
|
}
|
|
|
|
for (var i = 0; i < 10; ++i) {
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`in.js 1`] = `
|
2017-01-23 02:52:35 +03:00
|
|
|
"for ((x in a);;) {}
|
2017-01-26 01:24:25 +03:00
|
|
|
for (a=(a in b);;) {}
|
2017-03-09 04:09:37 +03:00
|
|
|
for (let a = (b in c); ; );
|
|
|
|
for (a && (b in c); ; );
|
|
|
|
for (a => (b in c); ; );
|
|
|
|
function* g() {
|
|
|
|
for (yield (a in b); ; );
|
|
|
|
}
|
|
|
|
async function f() {
|
|
|
|
for (await (a in b); ; );
|
|
|
|
}
|
2017-01-23 02:52:35 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for ((x in a); ; ) {
|
|
|
|
}
|
2017-01-26 01:24:25 +03:00
|
|
|
for (a = (a in b); ; ) {
|
|
|
|
}
|
2017-03-09 04:09:37 +03:00
|
|
|
for (let a = (b in c); ; );
|
|
|
|
for (a && (b in c); ; );
|
|
|
|
for (a => (b in c); ; );
|
|
|
|
function* g() {
|
|
|
|
for (yield (a in b); ; );
|
|
|
|
}
|
|
|
|
async function f() {
|
|
|
|
for (await (a in b); ; );
|
|
|
|
}
|
2017-01-23 02:52:35 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-03-09 00:18:13 +03:00
|
|
|
exports[`in.js 2`] = `
|
|
|
|
"for ((x in a);;) {}
|
|
|
|
for (a=(a in b);;) {}
|
2017-03-09 04:09:37 +03:00
|
|
|
for (let a = (b in c); ; );
|
|
|
|
for (a && (b in c); ; );
|
|
|
|
for (a => (b in c); ; );
|
|
|
|
function* g() {
|
|
|
|
for (yield (a in b); ; );
|
|
|
|
}
|
|
|
|
async function f() {
|
|
|
|
for (await (a in b); ; );
|
|
|
|
}
|
2017-03-09 00:18:13 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for ((x in a); ; ) {
|
|
|
|
}
|
|
|
|
for (a = (a in b); ; ) {
|
|
|
|
}
|
2017-03-09 04:09:37 +03:00
|
|
|
for (let a = (b in c); ; );
|
|
|
|
for (a && (b in c); ; );
|
|
|
|
for (a => (b in c); ; );
|
|
|
|
function* g() {
|
|
|
|
for (yield (a in b); ; );
|
|
|
|
}
|
|
|
|
async function f() {
|
|
|
|
for (await (a in b); ; );
|
|
|
|
}
|
2017-03-09 00:18:13 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`var.js 1`] = `
|
2017-01-22 23:34:14 +03:00
|
|
|
"for (a in b) var c = {}; [];
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for (a in b)
|
|
|
|
var c = {};
|
|
|
|
[];
|
|
|
|
"
|
|
|
|
`;
|
2017-03-09 00:18:13 +03:00
|
|
|
|
|
|
|
exports[`var.js 2`] = `
|
|
|
|
"for (a in b) var c = {}; [];
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for (a in b)
|
|
|
|
var c = {};
|
|
|
|
[];
|
|
|
|
"
|
|
|
|
`;
|