diff options
Diffstat (limited to 'test/built-ins/Function/prototype/toString/setter-class-expression-static.js')
-rw-r--r-- | test/built-ins/Function/prototype/toString/setter-class-expression-static.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js index ab0b1ede4..f276c8657 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; -let g = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; -let h = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; +let f = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}, "f").set; +let g = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "g").set; +let h = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); |