mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 17:04:31 +02:00
Use assertNativeFunction
instead of simple regexp pattern
This commit is contained in:
parent
ac9ff9bf75
commit
27622d7647
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
includes: [sm/non262.js, sm/non262-shell.js]
|
includes: [sm/non262.js, sm/non262-shell.js, nativeFunctionMatcher.js]
|
||||||
flags:
|
flags:
|
||||||
- noStrict
|
- noStrict
|
||||||
description: |
|
description: |
|
||||||
@ -261,9 +261,7 @@ function testBound(fun)
|
|||||||
testBound(strict);
|
testBound(strict);
|
||||||
testBound(nonstrict);
|
testBound(nonstrict);
|
||||||
|
|
||||||
var nativeFunctionRegex = /^function\s*\(\)\s*\{\s*\[native code\]\s*\}$/
|
assertNativeFunction((function unbound(){"body"}).bind());
|
||||||
assert.sameValue(nativeFunctionRegex.test((function unbound(){"body"}).bind().toString()), true);
|
|
||||||
|
|
||||||
|
|
||||||
/* 22. Return F. */
|
/* 22. Return F. */
|
||||||
var passim = function p(){}.bind(1);
|
var passim = function p(){}.bind(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user