⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 202943 in webkit


Ignore:
Timestamp:
Jul 7, 2016, 4:22:13 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

[JSC] Array.prototype[Symbol.unscopables] should have the "includes" property
https://bugs.webkit.org/show_bug.cgi?id=159504

Reviewed by Keith Miller.

Source/JavaScriptCore:

The property "includes" was missing.
Spec: https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables

  • runtime/ArrayPrototype.cpp:

(JSC::ArrayPrototype::finishCreation):

  • tests/stress/unscopables.js:

LayoutTests:

  • js/array-unscopables-properties-expected.txt: Added.
  • js/array-unscopables-properties.html: Added.
  • js/script-tests/array-unscopables-properties.js: Added.
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r202942 r202943  
     12016-07-07  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        [JSC] Array.prototype[Symbol.unscopables] should have the "includes" property
     4        https://bugs.webkit.org/show_bug.cgi?id=159504
     5
     6        Reviewed by Keith Miller.
     7
     8        * js/array-unscopables-properties-expected.txt: Added.
     9        * js/array-unscopables-properties.html: Added.
     10        * js/script-tests/array-unscopables-properties.js: Added.
     11
    1122016-07-07  Ryan Haddad  <ryanhaddad@apple.com>
    213
  • trunk/Source/JavaScriptCore/ChangeLog

    r202936 r202943  
     12016-07-07  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        [JSC] Array.prototype[Symbol.unscopables] should have the "includes" property
     4        https://bugs.webkit.org/show_bug.cgi?id=159504
     5
     6        Reviewed by Keith Miller.
     7
     8        The property "includes" was missing.
     9        Spec: https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
     10
     11        * runtime/ArrayPrototype.cpp:
     12        (JSC::ArrayPrototype::finishCreation):
     13        * tests/stress/unscopables.js:
     14
    1152016-07-07  Saam Barati  <sbarati@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/ArrayPrototype.cpp

    r202844 r202943  
    127127        "find",
    128128        "findIndex",
     129        "includes",
    129130        "keys",
    130131        "values"
  • trunk/Source/JavaScriptCore/tests/stress/unscopables.js

    r182225 r202943  
    1010    test(typeof unscopables, "object");
    1111    test(unscopables.__proto__, undefined);
    12     test(String(Object.keys(unscopables).sort()), "copyWithin,entries,fill,find,findIndex,keys,values");
     12    test(String(Object.keys(unscopables).sort()), "copyWithin,entries,fill,find,findIndex,includes,keys,values");
    1313}());
    1414
Note: See TracChangeset for help on using the changeset viewer.