summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js')
-rw-r--r--js/src/tests/test262/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js b/js/src/tests/test262/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js
new file mode 100644
index 0000000000..e277d39a8a
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.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-function-definitions-runtime-semantics-instantiatefunctionobject
+description: Function.prototype.toString on a function with a non-simple parameter list
+includes: [nativeFunctionMatcher.js]
+---*/
+
+/* before */function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }/* after */
+
+assertToStringOrNativeFunction(f, "function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }");
+
+reportCompare(0, 0);