Reviewed by Maciej.
- Changed JSObjectMakeConstructor to JSObjectMakeConstructorWithCallback,
to match JSObjectMakeFunctionWithCallback.
- Added prototype parameter, so the generated constructor
automatically works with hasInstance / instanceof
- Moved hasInstance implementation from InternalFunctionImp to JSObject
so that subclasses can inherit it without inheriting function-related baggage.
More refactoring here would be good, but this seems like a good short-term
solution.
(KJS::JSCallbackFunction::implementsHasInstance): override and return false,
because callback functions aren't constructors.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15482
268f45cc-cd09-0410-ab3c-
d52691b4dbfc