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 26154 - Allow ArrayBuffer as argument to decode()
Summary: Allow ArrayBuffer as argument to decode()
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Encoding (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+encodingspec
URL:
Whiteboard: blocked on IDL
Keywords:
Depends on: 23369
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-20 12:31 UTC by Anne
Modified: 2014-10-04 09:42 UTC (History)
4 users (show)

See Also:


Attachments

Description Anne 2014-06-20 12:31:43 UTC
Given that most APIs allow both views an raw buffers, there's not really any good argument left for TextDecoder to be different here.

Should also deal with neutered objects if IDL provides no hooks. I suspect we need to throw.
Comment 1 Joshua Bell 2014-06-20 16:44:29 UTC
Sounds good to me.