diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Function/prototype/toString/Function.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Function/prototype/toString/Function.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Function/prototype/toString/Function.js b/js/src/tests/test262/built-ins/Function/prototype/toString/Function.js new file mode 100644 index 0000000000..d95c4ac784 --- /dev/null +++ b/js/src/tests/test262/built-ins/Function/prototype/toString/Function.js @@ -0,0 +1,14 @@ +// 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 +includes: [nativeFunctionMatcher.js] +---*/ + +let f = /* before */Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; + +assertToStringOrNativeFunction(f, "function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); + +reportCompare(0, 0); |