mirror of https://github.com/tc39/test262.git
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]
|
||||
includes:
|
||||
- runTestCase.js
|
||||
- fnExists.js
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
|
@ -20,7 +19,7 @@ function testcase() {
|
|||
|
||||
// Now, deleting 'foo' directly should fail;
|
||||
var d = delete foo;
|
||||
if(d === false && fnExists(foo))
|
||||
if(d === false && typeof foo === 'function')
|
||||
return true;
|
||||
}
|
||||
runTestCase(testcase);
|
||||
|
|
Loading…
Reference in New Issue