We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d960e commit a54ed2dCopy full SHA for a54ed2d
tests/cases/fourslash/convertFunctionToEs6Class_asyncMethods.ts
@@ -2,13 +2,14 @@
2
3
// @allowNonTsExtensions: true
4
// @Filename: test123.js
5
+// @lib: es5
6
////export function /**/MyClass() {
7
////}
8
////MyClass.prototype.foo = async function() {
-//// await 2;
9
+//// await Promise.resolve();
10
11
////MyClass.bar = async function() {
-//// await 3;
12
13
14
15
verify.codeFix({
@@ -18,10 +19,10 @@ verify.codeFix({
18
19
constructor() {
20
}
21
async foo() {
- await 2;
22
+ await Promise.resolve();
23
24
static async bar() {
- await 3;
25
26
27
28
`,
0 commit comments