Make Object.prototype getter/setter methods match ES5 behaviour
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Oct 2011 18:15:55 +0000 (18:15 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Oct 2011 18:15:55 +0000 (18:15 +0000)
commita6bfa4d25737602f55ed94391df215b9a8014ce2
tree706205d8d89f7e705545d51b50c6302ced3d839e
parent21bc120c76cf7d4d625ea4af1754bc662c5b93d7
Make Object.prototype getter/setter methods match ES5 behaviour
https://bugs.webkit.org/show_bug.cgi?id=69393

Reviewed by Sam Weinig.

Source/JavaScriptCore:

The rest of Object.prototype no longer substitute Null/Undefined with the global object,
this is old ES3 behaviour. Remove it here too.

* runtime/ObjectPrototype.cpp:
(JSC::objectProtoFuncDefineGetter):
(JSC::objectProtoFuncDefineSetter):
(JSC::objectProtoFuncLookupGetter):
(JSC::objectProtoFuncLookupSetter):

LayoutTests:

Update tests to conform with ES5 style handling of 'this' in host functions.

* fast/dom/Window/Location/window-override-location-using-defineGetter.html:
* fast/dom/Window/Location/window-override-window-using-defineGetter.html:
* fast/js/exception-sequencing-binops.js:
* fast/js/exception-sequencing.html:
* fast/js/pic/delete-global-object.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/Location/window-override-location-using-defineGetter.html
LayoutTests/fast/dom/Window/Location/window-override-window-using-defineGetter.html
LayoutTests/fast/js/exception-sequencing-binops.js
LayoutTests/fast/js/exception-sequencing.html
LayoutTests/fast/js/pic/delete-global-object.html
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ObjectPrototype.cpp