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 26966 - " The result of converting an IDL value of any b..."
Summary: " The result of converting an IDL value of any b..."
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-04 09:39 UTC by Anne
Modified: 2014-10-04 10:13 UTC (History)
2 users (show)

See Also:


Attachments

Description Anne 2014-10-04 09:39:41 UTC
http://heycam.github.io/webidl/#es-buffer-source-types

[[
 The result of converting an IDL value of any buffer source type to an ECMAScript value is the Object value that represents a reference to the same object that the IDL value represents. 
]]

Can we make this easier. E.g. I have a sequence of bytes, and you make me an ArrayBuffer or UInt8Array. Or is that not worth the effort?

See https://encoding.spec.whatwg.org/#dom-textencoder-encode for an algorithm where the prose detailing what is returned is not exactly ideal.
Comment 1 Cameron McCormack 2014-10-04 10:13:49 UTC
Yes I think it's worth having something like this.