<?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>20455</bug_id>
          
          <creation_ts>2012-12-20 08:33:03 +0000</creation_ts>
          <short_desc>converting to an ECMAScript value [of a specified type??]</short_desc>
          <delta_ts>2019-03-04 16:43:18 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>[v1]</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>mike</cc>
    
    <cc>Ms2ger</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>80430</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2012-12-20 08:33:03 +0000</bug_when>
    <thetext>[1]
In &quot;4.4.1.1. Interface object [[Call]] method&quot;,
in algorithm 2,
step 6 says:
    Return the result of converting R to an ECMAScript interface type value I.

I think the phrase &quot;an ECMAScript interface type value I&quot; doesn&apos;t make sense.

The phrasing seems to establish &apos;I&apos; as a metavariable for the value that
results from the conversion, but (a) there&apos;s no need for such a metavariable,
and (b) &apos;I&apos; is already in use to refer to the interface.

If we assume that &apos;I&apos; *is* still meant to refer to the interface, then the
nearest meaningful phrase I can think of is:
   a value of the interface type associated with interface I
but that&apos;s an IDL value (in fact, I believe it correctly describes &apos;R&apos;);
inserting &quot;ECMAScript&quot; makes no sense.

And anyway, the IDL-&gt;ECMAScript value conversion is completely determined
by the IDL value, so there&apos;s no need to give particulars about the &quot;target&quot;
of the conversion.

So I think the quoted step should be changed to just:
    Return the result of converting R to an ECMAScript value.

---
[2]
Ditto &quot;4.4.2. Named constructors&quot;, alg 1, step 4.

---
[3]
Similarly in &quot;4.4.7. Operations&quot;, bullet 3, step 6:
    Return the result of converting R to an ECMAScript value
    of the type op is declared to return.

For one thing, &apos;op&apos; isn&apos;t defined; I assume &apos;operation&apos; was intended. 
But &apos;operation&apos; is an IDL operation, so the type it&apos;s declared to return
is an IDL type, and it doesn&apos;t make sense to talk about an ECMAScript value
of an IDL type. (Instead, *R* is presumably a value of that type.)
And again, IDL-&gt;ECMAScript conversion needs no particulars about the &quot;target&quot;,
so I think you should just delete everything after &quot;value&quot;.

---
[4]
Similarly in &quot;4.6.5. Platform object [[Call]] method&quot;, step 4:
    Return the result of converting the return value from those actions
    to an ECMAScript value of the type operation is declared to return
    (or undefined if operation is declared to return void).

Delete everything after &quot;ECMAScript value&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129595</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2019-03-04 12:01:28 +0000</bug_when>
    <thetext>https://github.com/heycam/webidl/commit/8ad7c1968eec5c9ad5f30936d2f76b7c0204873e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129596</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2019-03-04 16:43:18 +0000</bug_when>
    <thetext>Wow, that took a while! Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>