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