<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27553</bug_id>
          
          <creation_ts>2014-12-10 13:10:47 +0000</creation_ts>
          <short_desc>Support Symbol</short_desc>
          <delta_ts>2017-12-06 11:12:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Domenic Denicola">d</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>d</cc>
    
    <cc>erik.arvidsson</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116091</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-12-10 13:10:47 +0000</bug_when>
    <thetext>JavaScript can now define unique keys. Platform should have that ability as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116108</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-12-10 19:51:11 +0000</bug_when>
    <thetext>Which parts of this do we need in IDL?

Presumably we need to have a way for &quot;SomeInterface.something&quot; to be a well-known symbol (well-known in the sense that SomeInterface.something === otherWindow.SomeInterface.something), right?

Do we need anything else?  Do we need the ability to put these symbols on Symbol instead of SomeInterface?  (I&apos;d say we don&apos;t want that, personally.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116109</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-12-10 21:20:14 +0000</bug_when>
    <thetext>Only SomeInterface, Symbol is for TC39. (Although this will get messy of course once they adopt something from DOM again.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116110</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-12-10 21:31:36 +0000</bug_when>
    <thetext>OK.  So we could support syntax like so:

  interface Foo {
    symbol xyz;
  }

which would make Foo.xyz a well-known symbol whose [[Description]] is &quot;Foo.xyz&quot;, right?

Do we also need the ability to have symbol-named things on dictionaries or something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116975</commentid>
    <comment_count>4</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2015-01-09 20:11:32 +0000</bug_when>
    <thetext>Should probably be:

  interface Foo {
    static Symbol xyz;
  }

and then the rules for Symbol would have to define that all code realms need to share the Symbol xyz, just like ES6 defines the well known symbols: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-well-known-symbols</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128999</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-12-06 11:12:56 +0000</bug_when>
    <thetext>Part of this got addressed by https://github.com/heycam/webidl/pull/377. If the other part is still needed it&apos;s probably best to file a new issue for that. It&apos;s unclear at this point whether there are use cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>