タグ

WebIDLに関するtaninswのブックマーク (2)

  • JSIDL vs WebIDL · Issue #45 · whatwg/streams

    So, if Streams are supposed to be a ES-level thing, then using the non-existent JS IDL may be ok (though the TC39 crowd will likely raise some eyebrows). However, I think it should be dumped in preference for a reference implementation of some sort, as is commonly the case for ES features (at least, that's what I've seen in their Wiki). If this is supposed to be a browser API, then I don't think w

    JSIDL vs WebIDL · Issue #45 · whatwg/streams
  • Blobがコンストラクタに - fragmentary

    ちょっと前にFirefoxがBlob constructorを実装した。 Bug 721569 - Implement Blob constructor 使えるのはFx14からかなあ。とりあえずNightlyではエラーを出さずにBlobオブジェクトが返ってきた。 →Aurora (13)でも使えた! あ、何かというと、new Blob(...)ってやってBlobオブジェクトを生成するもの。 これまでBlobを作るのはBlobBuilderだったけど、基的に必要なくなる。 コンストラクタの引数は、データになるものを入れた配列と、あとオプションのディクショナリ。 配列はBlobBuilder.append()に渡せるものと同じくArrayBuffer, DOMString, Blobであればよくて、あと数も何個でもよい。 ディクショナリはWebIDLに導入されたもので、Blobではtypeと

    taninsw
    taninsw 2012/03/19
    例を見るかぎり,getterが定義されているとアクセスする順番によって値がかわっちゃう場合があるから順序決めとこうね、的な話かなと。
  • 1