Changeset 204160 in webkit


Ignore:
Timestamp:
Aug 4, 2016, 7:50:19 PM (9 years ago)
Author:
Yusuke Suzuki
Message:

[ES6] JSModuleNamespaceObject's Symbol.iterator function should have name
https://bugs.webkit.org/show_bug.cgi?id=160549

Reviewed by Saam Barati.

JSTests:

  • modules/namespace-object-symbol-iterator-name.js: Added.
  • test262.yaml:

Source/JavaScriptCore:

ES6 Module's namespace[Symbol.iterator] function should have the name, "[Symbol.iterator]".

  • runtime/JSModuleNamespaceObject.cpp:

(JSC::JSModuleNamespaceObject::finishCreation):

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r204140 r204160  
     12016-08-04  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        [ES6] JSModuleNamespaceObject's Symbol.iterator function should have name
     4        https://bugs.webkit.org/show_bug.cgi?id=160549
     5
     6        Reviewed by Saam Barati.
     7
     8        * modules/namespace-object-symbol-iterator-name.js: Added.
     9        * test262.yaml:
     10
    1112016-08-04  Keith Miller  <keith_miller@apple.com>
    212
  • trunk/JSTests/test262.yaml

    r204111 r204160  
    7125171251  cmd: runTest262 :normal, "NoException", ["../../../../../harness/assert.js", "../../../../../harness/sta.js", "../../../../../harness/propertyHelper.js"], [:module]
    7125271252- path: test262/test/language/module-code/namespace/Symbol.iterator/name.js
    71253   cmd: runTest262 :fail, "NoException", ["../../../../../harness/assert.js", "../../../../../harness/sta.js", "../../../../../harness/propertyHelper.js"], [:module]
     71253  cmd: runTest262 :normal, "NoException", ["../../../../../harness/assert.js", "../../../../../harness/sta.js", "../../../../../harness/propertyHelper.js"], [:module]
    7125471254- path: test262/test/language/module-code/namespace/Symbol.iterator/prop-desc.js
    7125571255  cmd: runTest262 :normal, "NoException", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], [:module]
  • trunk/Source/JavaScriptCore/ChangeLog

    r204140 r204160  
     12016-08-04  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        [ES6] JSModuleNamespaceObject's Symbol.iterator function should have name
     4        https://bugs.webkit.org/show_bug.cgi?id=160549
     5
     6        Reviewed by Saam Barati.
     7
     8        ES6 Module's namespace[Symbol.iterator] function should have the name, "[Symbol.iterator]".
     9
     10        * runtime/JSModuleNamespaceObject.cpp:
     11        (JSC::JSModuleNamespaceObject::finishCreation):
     12
    1132016-08-04  Keith Miller  <keith_miller@apple.com>
    214
  • trunk/Source/JavaScriptCore/runtime/JSModuleNamespaceObject.cpp

    r201703 r204160  
    7373
    7474    m_moduleRecord.set(vm, this, moduleRecord);
    75     JSC_NATIVE_FUNCTION(vm.propertyNames->iteratorSymbol, moduleNamespaceObjectSymbolIterator, DontEnum, 0);
     75    JSFunction* iteratorFunction = JSFunction::create(vm, globalObject, 0, ASCIILiteral("[Symbol.iterator]"), moduleNamespaceObjectSymbolIterator, NoIntrinsic);
     76    putDirect(vm, vm.propertyNames->iteratorSymbol, iteratorFunction, DontEnum);
    7677    putDirect(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "Module"), DontEnum | ReadOnly);
    7778
Note: See TracChangeset for help on using the changeset viewer.