diff options
Diffstat (limited to 'test/built-ins/Function/prototype/toString/async-method-class-expression.js')
-rw-r--r-- | test/built-ins/Function/prototype/toString/async-method-class-expression.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-method-class-expression.js index a4c84fc76..dcacd9c9d 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression.js @@ -8,15 +8,9 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { /* before */ - async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.prototype.f; -let g = class { /* before */ - async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.prototype.g; -let h = class { /* before */ - async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.prototype.h; +let f = class { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; +let g = class { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.g; +let h = class { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); |