We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assertNativeFunction
1 parent ac9ff9b commit 45c6f70Copy full SHA for 45c6f70
test/staging/sm/Function/function-bind.js
@@ -4,7 +4,7 @@
4
*/
5
6
/*---
7
-includes: [sm/non262.js, sm/non262-shell.js]
+includes: [sm/non262.js, sm/non262-shell.js, nativeFunctionMatcher.js]
8
flags:
9
- noStrict
10
description: |
@@ -261,9 +261,7 @@ function testBound(fun)
261
testBound(strict);
262
testBound(nonstrict);
263
264
-var nativeFunctionRegex = /^function\s*\(\)\s*\{\s*\[native code\]\s*\}$/
265
-assert.sameValue(nativeFunctionRegex.test((function unbound(){"body"}).bind().toString()), true);
266
-
+assertNativeFunction((function unbound(){"body"}).bind());
267
268
/* 22. Return F. */
269
var passim = function p(){}.bind(1);
0 commit comments