diff options
Diffstat (limited to 'test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js')
-rw-r--r-- | test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js index 8160bd4dd..0ee3ffc0e 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js @@ -5,6 +5,7 @@ esid: sec-function.prototype.tostring description: Function.prototype.toString on an async generator method features: [async-iteration] +includes: [nativeFunctionMatcher.js] ---*/ let x = "h"; @@ -16,6 +17,6 @@ let f = F.prototype.f; let g = G.prototype.g; let h = H.prototype.h; -assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); -assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); -assert.sameValue(h.toString(), "async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); +assertToStringOrNativeFunction(f, "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); +assertToStringOrNativeFunction(g, "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); +assertToStringOrNativeFunction(h, "async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); |