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