summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/prototype/toString/async-generator-declaration.js
blob: ffb583cb53dc0d6779f8333dbf98517bdd8cfe89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-function.prototype.tostring
description: Function.prototype.toString on an async generator declaration
features: [async-iteration]
includes: [nativeFunctionMatcher.js]
---*/

/* before */async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */

assertToStringOrNativeFunction(f, "async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }");