add line feeds following `{` of F.p.toString output for dynamic functions (#803)

This aligns the tests with this recent change to the F.p.toString proposal:
7432ded0e6
This commit is contained in:
Michael Ficarra 2016-12-06 09:23:05 -08:00 committed by Leo Balter
parent 08071715e4
commit 4a5c52beb5
2 changed files with 2 additions and 2 deletions

View File

@ -8,4 +8,4 @@ description: Function.prototype.toString on a function created with the Function
let f = /* before */Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */;
assert.sameValue(f.toString(), "function anonymous(a, /* a */ b, c /* b */ //\n) {/* c */ ; /* d */ //\n}");
assert.sameValue(f.toString(), "function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}");

View File

@ -9,4 +9,4 @@ description: Function.prototype.toString on a generator function created with th
let GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor;
let g = /* before */GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //")/* after */;
assert.sameValue(g.toString(), "function* anonymous(a, /* a */ b, c /* b */ //\n) {/* c */ yield yield; /* d */ //\n}");
assert.sameValue(g.toString(), "function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ yield yield; /* d */ //\n}");