[ESNext] Symbol.prototype.description
authorross.kirsling@sony.com <ross.kirsling@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Sep 2018 22:18:09 +0000 (22:18 +0000)
committerross.kirsling@sony.com <ross.kirsling@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Sep 2018 22:18:09 +0000 (22:18 +0000)
commit454add5022d156d7d914137989defbb3f902ee8e
tree87da7a598a04c0ecec05d46172babf3d1f337ec5
parentf76d425b01b2a5b0b54914379942d014357bfa01
[ESNext] Symbol.prototype.description
https://bugs.webkit.org/show_bug.cgi?id=186686

Reviewed by Keith Miller.

JSTests:

* stress/symbol-description.js:
Add tests for empty and null symbol cases.

* test262/config.yaml:
Enable Symbol.prototype.description tests.

Source/JavaScriptCore:

Symbol.prototype.description was implemented in r232404, but has one small bug:
It should return undefined for a null symbol.

* runtime/Symbol.cpp:
(JSC::Symbol::description const):
* runtime/SymbolPrototype.cpp:
(JSC::symbolProtoGetterDescription):
Address the null symbol case.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/symbol-description.js
JSTests/test262/config.yaml
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/Symbol.cpp
Source/JavaScriptCore/runtime/SymbolPrototype.cpp