2017-01-13 21:00:32 +03:00
|
|
|
exports[`test for.js 1`] = `
|
|
|
|
"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-01-23 02:52:35 +03:00
|
|
|
exports[`test in.js 1`] = `
|
|
|
|
"for ((x in a);;) {}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for ((x in a); ; ) {
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-01-22 23:34:14 +03:00
|
|
|
exports[`test var.js 1`] = `
|
|
|
|
"for (a in b) var c = {}; [];
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
for (a in b)
|
|
|
|
var c = {};
|
|
|
|
[];
|
|
|
|
"
|
|
|
|
`;
|