mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Merge pull request #337 from bocoup/remove-fn-exists
Remove unnecessary "include" file
This commit is contained in:
commit
20d39432b9
@ -1,7 +0,0 @@
|
|||||||
//-----------------------------------------------------------------------------
|
|
||||||
function fnExists(/*arguments*/) {
|
|
||||||
for (var i = 0; i < arguments.length; i++) {
|
|
||||||
if (typeof (arguments[i]) !== "function") return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
@ -12,7 +12,6 @@ description: >
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
includes:
|
includes:
|
||||||
- runTestCase.js
|
- runTestCase.js
|
||||||
- fnExists.js
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
@ -20,7 +19,7 @@ function testcase() {
|
|||||||
|
|
||||||
// Now, deleting 'foo' directly should fail;
|
// Now, deleting 'foo' directly should fail;
|
||||||
var d = delete foo;
|
var d = delete foo;
|
||||||
if(d === false && fnExists(foo))
|
if(d === false && typeof foo === 'function')
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
runTestCase(testcase);
|
runTestCase(testcase);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user