summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/prototype/toString/async-method-class-expression.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Function/prototype/toString/async-method-class-expression.js')
-rw-r--r--test/built-ins/Function/prototype/toString/async-method-class-expression.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-method-class-expression.js
index be19ef930..17511ca84 100644
--- a/test/built-ins/Function/prototype/toString/async-method-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-method-class-expression.js
@@ -5,6 +5,7 @@
esid: sec-function.prototype.tostring
description: Function.prototype.toString on an async method
features: [async-functions]
+includes: [nativeFunctionMatcher.js]
---*/
let x = "h";
@@ -12,6 +13,6 @@ let f = class { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* af
let g = class { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.g;
let h = class { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.h;
-assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
-assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
-assert.sameValue(h.toString(), "async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
+assertToStringOrNativeFunction(f, "async f /* a */ ( /* b */ ) /* c */ { /* d */ }");
+assertToStringOrNativeFunction(g, "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");
+assertToStringOrNativeFunction(h, "async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }");