diff options
Diffstat (limited to 'test/built-ins/Function/prototype/toString/async-function-expression.js')
-rw-r--r-- | test/built-ins/Function/prototype/toString/async-function-expression.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/built-ins/Function/prototype/toString/async-function-expression.js b/test/built-ins/Function/prototype/toString/async-function-expression.js index 2b540b4e8..d9878ea5d 100644 --- a/test/built-ins/Function/prototype/toString/async-function-expression.js +++ b/test/built-ins/Function/prototype/toString/async-function-expression.js @@ -6,10 +6,11 @@ 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 */; -assert.sameValue(f.toString(), "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); -assert.sameValue(g.toString(), "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); +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 */ }"); |