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