diff options
Diffstat (limited to 'test/built-ins/Function/prototype/toString/async-method-object.js')
-rw-r--r-- | test/built-ins/Function/prototype/toString/async-method-object.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/built-ins/Function/prototype/toString/async-method-object.js b/test/built-ins/Function/prototype/toString/async-method-object.js index de117ed4f..99e6e7670 100644 --- a/test/built-ins/Function/prototype/toString/async-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-method-object.js @@ -9,9 +9,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = { /* 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 */ }"); |