summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/prototype/toString/Function.js
blob: dd75ab84fa4b55edd21df2b85a0ebb792d0fadab (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2016 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-createdynamicfunction
description: Function.prototype.toString on a function created with the Function constructor
---*/

let f = /* before */ Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ;

assert.sameValue(f.toString(), "function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}");