100 lines
1.6 KiB
Plaintext
100 lines
1.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`async-do-expressions.js [acorn] format 1`] = `
|
|
"Unexpected token (1:7)
|
|
> 1 | async do {
|
|
| ^
|
|
2 | 1;
|
|
3 | };
|
|
4 |
|
|
Cause: Unexpected token (1:6)"
|
|
`;
|
|
|
|
exports[`async-do-expressions.js [espree] format 1`] = `
|
|
"Unexpected token do (1:7)
|
|
> 1 | async do {
|
|
| ^
|
|
2 | 1;
|
|
3 | };
|
|
4 |
|
|
Cause: Unexpected token do"
|
|
`;
|
|
|
|
exports[`async-do-expressions.js [meriyah] format 1`] = `
|
|
"Unexpected token: 'do' (1:8)
|
|
> 1 | async do {
|
|
| ^
|
|
2 | 1;
|
|
3 | };
|
|
4 |
|
|
Cause: [1:8]: Unexpected token: 'do'"
|
|
`;
|
|
|
|
exports[`async-do-expressions.js format 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
async do {
|
|
1;
|
|
};
|
|
|
|
(async do {});
|
|
|
|
let x = async do {
|
|
if (foo()) { f() }
|
|
else if (bar()) { g() }
|
|
else { h() }
|
|
};
|
|
|
|
async do {
|
|
await 42
|
|
}
|
|
|
|
function iter() {
|
|
return async do {
|
|
return 1;
|
|
}
|
|
};
|
|
|
|
let x = async do {
|
|
let tmp = f();
|
|
tmp * tmp + 1
|
|
};
|
|
|
|
=====================================output=====================================
|
|
(async do {
|
|
1;
|
|
});
|
|
|
|
(async do {});
|
|
|
|
let x = async do {
|
|
if (foo()) {
|
|
f();
|
|
} else if (bar()) {
|
|
g();
|
|
} else {
|
|
h();
|
|
}
|
|
};
|
|
|
|
(async do {
|
|
await 42;
|
|
});
|
|
|
|
function iter() {
|
|
return async do {
|
|
return 1;
|
|
};
|
|
}
|
|
|
|
let x = async do {
|
|
let tmp = f();
|
|
tmp * tmp + 1;
|
|
};
|
|
|
|
================================================================================
|
|
`;
|