Changeset 239464 in webkit


Ignore:
Timestamp:
Dec 20, 2018 1:39:11 PM (5 years ago)
Author:
keith_miller@apple.com
Message:

Add support for globalThis
https://bugs.webkit.org/show_bug.cgi?id=165171

Reviewed by Mark Lam.

JSTests:

  • test262/config.yaml:

Source/JavaScriptCore:

This patch adds support for the globalThis property on the global
object. The globalThis property spec is in stage three and is
quite simple. For reference: http://tc39.github.io/proposal-global/

  • runtime/JSGlobalObject.cpp:
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r239456 r239464  
     12018-12-20  Keith Miller  <keith_miller@apple.com>
     2
     3        Add support for globalThis
     4        https://bugs.webkit.org/show_bug.cgi?id=165171
     5
     6        Reviewed by Mark Lam.
     7
     8        * test262/config.yaml:
     9
    1102018-12-19  Keith Miller  <keith_miller@apple.com>
    211
  • trunk/JSTests/test262/config.yaml

    r239456 r239464  
    4949    - test/built-ins/Reflect/ownKeys/return-on-corresponding-order-large-index.js
    5050
    51     # https://bugs.webkit.org/show_bug.cgi?id=186785
    52     - test/built-ins/global/global-object.js
    53     - test/built-ins/global/property-descriptor.js
    54 
    5551    # https://bugs.webkit.org/show_bug.cgi?id=192920
    5652    - test/intl402/PluralRules/prototype/resolvedOptions/order.js
  • trunk/Source/JavaScriptCore/ChangeLog

    r239461 r239464  
     12018-12-20  Keith Miller  <keith_miller@apple.com>
     2
     3        Add support for globalThis
     4        https://bugs.webkit.org/show_bug.cgi?id=165171
     5
     6        Reviewed by Mark Lam.
     7
     8        This patch adds support for the globalThis property on the global
     9        object. The globalThis property spec is in stage three and is
     10        quite simple. For reference: http://tc39.github.io/proposal-global/
     11
     12        * runtime/JSGlobalObject.cpp:
     13
    1142018-12-20  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp

    r237469 r239464  
    303303  encodeURIComponent    globalFuncEncodeURIComponent                 DontEnum|Function 1
    304304  EvalError             JSGlobalObject::m_evalErrorConstructor       DontEnum|CellProperty
     305  globalThis            JSGlobalObject::m_globalThis                 DontEnum|CellProperty
    305306  ReferenceError        JSGlobalObject::m_referenceErrorConstructor  DontEnum|CellProperty
    306307  SyntaxError           JSGlobalObject::m_syntaxErrorConstructor     DontEnum|CellProperty
Note: See TracChangeset for help on using the changeset viewer.