This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20458 - 4.2.22: converting IDL value to IDL type?
Summary: 4.2.22: converting IDL value to IDL type?
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard: [v1]
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 09:24 UTC by Michael Dyck
Modified: 2014-01-27 17:01 UTC (History)
2 users (show)

See Also:


Attachments

Description Michael Dyck 2012-12-20 09:24:09 UTC
In "4.2.22. Nullable types -- T?",
in the IDL->ECMAscript conversion,
the second bullet says:

    Otherwise, the ECMAScript value is the result of converting the
    IDL nullable type value to the inner IDL type T.

which incorrectly implies that you can get an ECMAScript value when you convert
an IDL value to an IDL type.

I think you need to change:
    to the inner IDL type T
to:
    using the rules for the inner IDL type T

Or perhaps change the whole bullet to something like:

    Otherwise, the IDL value must be a value of the nullable type's
    inner type T. The ECMAScript value is the result of converting
    the IDL value using the rules for T.
Comment 1 Cameron McCormack 2014-01-27 17:01:24 UTC
Thanks, the "using the rules for" wording is good.

https://github.com/heycam/webidl/commit/848b0c60effcf585f442a7899ba958b05c833929