From 5fb750a395706544b6499038e64ea75902c134b2 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 26 Jan 2015 22:14:30 -0500 Subject: [PATCH] Define global properties Closes #254. And yes, WebIDL would take care of this; that's #45. --- index.bs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/index.bs b/index.bs index a81fa69bf..1ef66a00a 100644 --- a/index.bs +++ b/index.bs @@ -1781,6 +1781,34 @@ A few abstract operations are used in this specification for utility purposes. W
  • Otherwise, return a new promise resolved with returnValue.\[[value]]. +

    Global Properties

    + +Ideally, this standard would add no new properties to the global object, instead relying on a standard ECMAScript +module. However, given that the specification for and implementation of modules in a browser environment is still in +flux, in the meantime the following properties must be exposed on the global object: + + + +In all cases the property must be a data property, with its value being the corresponding constructor defined in this +standard, and other attributes { \[[Writable]]: true, \[[Enumerable]]: false, \[[Configurable]]: +true }. + +
    + The ExclusiveStreamReader class is specifically not exposed, as while it does have a + functioning constructor, instances should instead be created through the getReader method of a + ReadableStream instance. +
    + +
    + If by the time implementers begin implementing this standard, modules start becoming feasible in the relevant + environments, then we should reconsider this requirement. +
    +

    Subclassing Streams

    This section is non-normative.