diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-20 02:50:01 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-20 02:50:01 +0200 |
commit | 41731a7f31a1724e74b32eb7be87de2719f977c3 (patch) | |
tree | ce91934551908ffba91f84ef44c761204e3bfa8a /js/src/builtin/SymbolObject.h | |
parent | 162e22a7de3026b676156a2aad29909fe3795dba (diff) | |
download | UXP-41731a7f31a1724e74b32eb7be87de2719f977c3.tar UXP-41731a7f31a1724e74b32eb7be87de2719f977c3.tar.gz UXP-41731a7f31a1724e74b32eb7be87de2719f977c3.tar.lz UXP-41731a7f31a1724e74b32eb7be87de2719f977c3.tar.xz UXP-41731a7f31a1724e74b32eb7be87de2719f977c3.zip |
Implement Symbol.prototype.description
Resolves #1096
Diffstat (limited to 'js/src/builtin/SymbolObject.h')
-rw-r--r-- | js/src/builtin/SymbolObject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/builtin/SymbolObject.h b/js/src/builtin/SymbolObject.h index 0f204b494..e10b42d53 100644 --- a/js/src/builtin/SymbolObject.h +++ b/js/src/builtin/SymbolObject.h @@ -52,6 +52,10 @@ class SymbolObject : public NativeObject static MOZ_MUST_USE bool valueOf(JSContext* cx, unsigned argc, Value* vp); static MOZ_MUST_USE bool toPrimitive(JSContext* cx, unsigned argc, Value* vp); + // Properties defined on Symbol.prototype. + static MOZ_MUST_USE bool descriptionGetter_impl(JSContext* cx, const CallArgs& args); + static MOZ_MUST_USE bool descriptionGetter(JSContext* cx, unsigned argc, Value *vp); + static const JSPropertySpec properties[]; static const JSFunctionSpec methods[]; static const JSFunctionSpec staticMethods[]; |