mirror of
https://github.com/tc39/test262.git
synced 2025-07-30 17:34:51 +02:00
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:
parent
08071715e4
commit
4a5c52beb5
@ -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}");
|
||||
|
@ -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}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user