-
barraclough@apple.com authored
Object.prototype.__define{G,S}etter__ with non-callable second parameter should throw TypeError instead of SyntaxError https://bugs.webkit.org/show_bug.cgi?id=93873 Reviewed by Sam Weinig. Source/JavaScriptCore: * runtime/ObjectPrototype.cpp: (JSC::objectProtoFuncDefineGetter): - throw TypeError instead of SyntaxError (JSC::objectProtoFuncDefineSetter): - throw TypeError instead of SyntaxError LayoutTests: * fast/js/property-getters-and-setters-expected.txt: - updated results git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
885da322