Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify PropertyDescriptor of @@toStringTag symbol #513

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6706,15 +6706,12 @@ of objects defined in this section is {{%ObjectPrototype%}}.

Some objects described in this section are defined to have a <dfn id="dfn-class-string" export>class string</dfn>,
which is the string to include in the string returned from Object.prototype.toString.
If an object has a class string, then the object must,
at the time it is created, have a property whose name is the {{@@toStringTag}} symbol
and whose value is the specified string.

<p class="issue">
Should define whether {{@@toStringTag}} is writable, enumerable and configurable.
All {{@@toStringTag}} properties in the ECMAScript spec are non-writable and non-enumerable,
and configurable.
</p>
If an object has a class string |classString|, then the object must,
at the time it is created, have a property whose name is the {{@@toStringTag}} symbol
with PropertyDescriptor{\[[Writable]]: <emu-val>false</emu-val>,
\[[Enumerable]]: <emu-val>false</emu-val>, \[[Configurable]]: <emu-val>true</emu-val>,
\[[Value]]: |classString|}.

<p id="ecmascript-abstractop">
Algorithms in this section use the conventions described in [=ECMA-262 §5.2|ECMA-262 §5.2
Expand Down