+2007-04-23 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Darin.
+
+ - fix some test failures
+
+ * bindings/runtime_method.cpp:
+ (RuntimeMethod::RuntimeMethod): inherit from InternalFunctionImp instead of FunctionImpl,
+ otherwise this is too big
+ (RuntimeMethod::getOwnPropertySlot):
+ * bindings/runtime_method.h:
+
2007-04-22 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
#include "context.h"
#include "runtime_object.h"
+#include "function_object.h"
using namespace KJS::Bindings;
using namespace KJS;
-// FIXME: this should probably use InternalFunctionImp, not FunctionImp
RuntimeMethod::RuntimeMethod(ExecState *exec, const Identifier &ident, Bindings::MethodList &m)
- : FunctionImp (exec, ident, 0)
+ : InternalFunctionImp (static_cast<FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), ident)
{
_methodList = m;
}
return true;
}
- return FunctionImp::getOwnPropertySlot(exec, propertyName, slot);
+ return InternalFunctionImp::getOwnPropertySlot(exec, propertyName, slot);
}
JSValue *RuntimeMethod::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
namespace KJS {
-class RuntimeMethod : public FunctionImp
+class RuntimeMethod : public InternalFunctionImp
{
public:
RuntimeMethod(ExecState *exec, const Identifier &n, Bindings::MethodList &methodList);