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

Changeset 202916 in webkit


Ignore:
Timestamp:
Jul 7, 2016, 10:27:17 AM (10 years ago)
Author:
benjamin@webkit.org
Message:

[JSC] String.prototype.normalize should have a length of zero
https://bugs.webkit.org/show_bug.cgi?id=159506

Reviewed by Yusuke Suzuki.

Source/JavaScriptCore:

Spec: https://tc39.github.io/ecma262/#sec-string.prototype.normalize
The argument is optional, the length should be zero.

  • runtime/StringPrototype.cpp:

(JSC::StringPrototype::finishCreation):

LayoutTests:

  • js/script-tests/string-normalize.js: Added.

(listener.toString):

  • js/string-normalize-expected.txt: Added.
  • js/string-normalize.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r202911 r202916  
     12016-07-07  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        [JSC] String.prototype.normalize should have a length of zero
     4        https://bugs.webkit.org/show_bug.cgi?id=159506
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * js/script-tests/string-normalize.js: Added.
     9        (listener.toString):
     10        * js/string-normalize-expected.txt: Added.
     11        * js/string-normalize.html: Added.
     12
    1132016-07-07  Eric Carlson  <eric.carlson@apple.com>
    214
  • trunk/Source/JavaScriptCore/ChangeLog

    r202899 r202916  
     12016-07-07  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        [JSC] String.prototype.normalize should have a length of zero
     4        https://bugs.webkit.org/show_bug.cgi?id=159506
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Spec: https://tc39.github.io/ecma262/#sec-string.prototype.normalize
     9        The argument is optional, the length should be zero.
     10
     11        * runtime/StringPrototype.cpp:
     12        (JSC::StringPrototype::finishCreation):
     13
    1142016-07-07  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Source/JavaScriptCore/runtime/StringPrototype.cpp

    r202280 r202916  
    174174    JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("endsWith", stringProtoFuncEndsWith, DontEnum, 1);
    175175    JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("includes", stringProtoFuncIncludes, DontEnum, 1);
    176     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("normalize", stringProtoFuncNormalize, DontEnum, 1);
     176    JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("normalize", stringProtoFuncNormalize, DontEnum, 0);
    177177    JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->iteratorSymbol, stringProtoFuncIterator, DontEnum, 0);
    178178
Note: See TracChangeset for help on using the changeset viewer.