[ES6] Add @@toStringTag to GeneratorFunction
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Apr 2016 11:16:24 +0000 (11:16 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Apr 2016 11:16:24 +0000 (11:16 +0000)
commit1b52b6421390f59c444c4fc1f066e6f677e6c647
tree7ca2e0f7533820a4a7156d5527bae37ae2fdb0cd
parentea533fd436f82f4bcdfd947ec6d5e6152486dfd0
[ES6] Add @@toStringTag to GeneratorFunction
https://bugs.webkit.org/show_bug.cgi?id=156499

Reviewed by Mark Lam.

GeneratorFunction.prototype has @@toStringTag property, "GeneratorFunction".
https://tc39.github.io/ecma262/#sec-generatorfunction.prototype-@@tostringtag

* runtime/GeneratorFunctionPrototype.cpp:
(JSC::GeneratorFunctionPrototype::finishCreation):
* tests/es6.yaml:
* tests/es6/well-known_symbols_Symbol.toStringTag_new_built-ins.js: Added.
(test):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/GeneratorFunctionPrototype.cpp
Source/JavaScriptCore/tests/es6.yaml
Source/JavaScriptCore/tests/es6/well-known_symbols_Symbol.toStringTag_new_built-ins.js [new file with mode: 0644]