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