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