diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Function/prototype/toString/async-function-expression.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Function/prototype/toString/async-function-expression.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Function/prototype/toString/async-function-expression.js b/js/src/tests/test262/built-ins/Function/prototype/toString/async-function-expression.js new file mode 100644 index 0000000000..885da76754 --- /dev/null +++ b/js/src/tests/test262/built-ins/Function/prototype/toString/async-function-expression.js @@ -0,0 +1,18 @@ +// Copyright 2016 Microsoft, Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +author: Brian Terlson <brian.terlson@microsoft.com> +esid: sec-function.prototype.tostring +description: Function.prototype.toString on an async function expression +features: [async-functions] +includes: [nativeFunctionMatcher.js] +---*/ + +let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; +let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; + +assertToStringOrNativeFunction(f, "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); +assertToStringOrNativeFunction(g, "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); + +reportCompare(0, 0); |