Ignore:
Timestamp:
Sep 7, 2012, 3:50:45 PM (13 years ago)
Author:
[email protected]
Message:

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r127829 r127930  
     12012-09-07  Gavin Barraclough  <[email protected]>
     2
     3        Object.prototype.__define{G,S}etter__ with non-callable second parameter should throw TypeError instead of SyntaxError
     4        https://bugs.webkit.org/show_bug.cgi?id=93873
     5
     6        Reviewed by Sam Weinig.
     7
     8        * runtime/ObjectPrototype.cpp:
     9        (JSC::objectProtoFuncDefineGetter):
     10            - throw TypeError instead of SyntaxError
     11        (JSC::objectProtoFuncDefineSetter):
     12            - throw TypeError instead of SyntaxError
     13
    1142012-09-06  Mark Hahnenberg  <[email protected]>
    215
Note: See TracChangeset for help on using the changeset viewer.