Ignore:
Timestamp:
Oct 5, 2011, 11:15:55 AM (14 years ago)
Author:
[email protected]
Message:

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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r96722 r96729  
     12011-10-04  Gavin Barraclough  <[email protected]>
     2
     3        Make Object.prototype getter/setter methods match ES5 behaviour
     4        https://bugs.webkit.org/show_bug.cgi?id=69393
     5
     6        Reviewed by Sam Weinig.
     7
     8        The rest of Object.prototype no longer substitute Null/Undefined with the global object,
     9        this is old ES3 behaviour. Remove it here too.
     10
     11        * runtime/ObjectPrototype.cpp:
     12        (JSC::objectProtoFuncDefineGetter):
     13        (JSC::objectProtoFuncDefineSetter):
     14        (JSC::objectProtoFuncLookupGetter):
     15        (JSC::objectProtoFuncLookupSetter):
     16
    1172011-10-05  Patrick Gansterer  <[email protected]>
    218
Note: See TracChangeset for help on using the changeset viewer.