Commit a2505c5b authored by Nidhi Jaju's avatar Nidhi Jaju Committed by Commit Bot

Remove NotEnumerable from Writable Streams WebIDL

According to https://github.com/whatwg/streams/pull/1035, all methods
and accessors are now enumerable, per Web IDL defaults, instead of
non-enumerable, per ECMAScript defaults. Hence, 'NotEnumerable' can
be removed from the Streams WebIDL files. This CL specifically
removes them from writable streams.

Bug: 1093862
Change-Id: I935a9f8726b3cb1dc4efb5b4d6db71384c8efe37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485664Reviewed-by: default avatarAdam Rice <ricea@chromium.org>
Commit-Queue: Nidhi Jaju <nidhijaju@google.com>
Cr-Commit-Position: refs/heads/master@{#819181}
parent f7cdb8cb
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
Exposed=(Window,Worker,Worklet) Exposed=(Window,Worker,Worklet)
] interface WritableStream { ] interface WritableStream {
[CallWith=ScriptState, RaisesException, MeasureAs=WritableStreamConstructor] constructor(optional any underlyingSink, optional any strategy); [CallWith=ScriptState, RaisesException, MeasureAs=WritableStreamConstructor] constructor(optional any underlyingSink, optional any strategy);
[NotEnumerable] readonly attribute boolean locked; readonly attribute boolean locked;
[RaisesException, CallWith=ScriptState, NotEnumerable] Promise<void> abort( [RaisesException, CallWith=ScriptState] Promise<void> abort(
optional any reason); optional any reason);
[RaisesException, CallWith=ScriptState, NotEnumerable] Promise<void> close(); [RaisesException, CallWith=ScriptState] Promise<void> close();
[RaisesException, CallWith=ScriptState, NotEnumerable] WritableStreamDefaultWriter getWriter(); [RaisesException, CallWith=ScriptState] WritableStreamDefaultWriter getWriter();
}; };
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
// https://streams.spec.whatwg.org/#ws-default-controller-class-definition // https://streams.spec.whatwg.org/#ws-default-controller-class-definition
interface WritableStreamDefaultController { interface WritableStreamDefaultController {
[CallWith=ScriptState, NotEnumerable] void error(optional any e); [CallWith=ScriptState] void error(optional any e);
}; };
...@@ -9,17 +9,17 @@ ...@@ -9,17 +9,17 @@
Exposed=(Window,Worker,Worklet) Exposed=(Window,Worker,Worklet)
] interface WritableStreamDefaultWriter { ] interface WritableStreamDefaultWriter {
[CallWith=ScriptState, RaisesException] constructor(WritableStream stream); [CallWith=ScriptState, RaisesException] constructor(WritableStream stream);
[CallWith=ScriptState, NotEnumerable] readonly attribute Promise<void> [CallWith=ScriptState] readonly attribute Promise<void>
closed; closed;
[RaisesException, CallWith=ScriptState, NotEnumerable] readonly attribute [RaisesException, CallWith=ScriptState] readonly attribute
any desiredSize; any desiredSize;
[CallWith=ScriptState, NotEnumerable] readonly attribute Promise<void> [CallWith=ScriptState] readonly attribute Promise<void>
ready; ready;
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> abort( [CallWith=ScriptState, RaisesException] Promise<void> abort(
optional any reason); optional any reason);
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> close(); [CallWith=ScriptState, RaisesException] Promise<void> close();
[CallWith=ScriptState, NotEnumerable] void releaseLock(); [CallWith=ScriptState, NotEnumerable] void releaseLock();
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> write( [CallWith=ScriptState, RaisesException] Promise<void> write(
optional any chunk); optional any chunk);
}; };
...@@ -124,10 +124,10 @@ PASS WritableStream interface object name ...@@ -124,10 +124,10 @@ PASS WritableStream interface object name
PASS WritableStream interface: existence and properties of interface prototype object PASS WritableStream interface: existence and properties of interface prototype object
PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStream interface: attribute locked assert_true: property should be enumerable expected true got false PASS WritableStream interface: attribute locked
FAIL WritableStream interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation abort(optional any)
FAIL WritableStream interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation close()
FAIL WritableStream interface: operation getWriter() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation getWriter()
PASS WritableStream must be primary interface of new WritableStream() PASS WritableStream must be primary interface of new WritableStream()
PASS Stringification of new WritableStream() PASS Stringification of new WritableStream()
PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type
...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name ...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStreamDefaultWriter interface: attribute closed assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute closed
FAIL WritableStreamDefaultWriter interface: attribute desiredSize assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute desiredSize
FAIL WritableStreamDefaultWriter interface: attribute ready assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute ready
FAIL WritableStreamDefaultWriter interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation abort(optional any)
FAIL WritableStreamDefaultWriter interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation close()
FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false
FAIL WritableStreamDefaultWriter interface: operation write(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation write(optional any)
PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter() PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()
PASS Stringification of (new WritableStream()).getWriter() PASS Stringification of (new WritableStream()).getWriter()
PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type
......
...@@ -124,10 +124,10 @@ PASS WritableStream interface object name ...@@ -124,10 +124,10 @@ PASS WritableStream interface object name
PASS WritableStream interface: existence and properties of interface prototype object PASS WritableStream interface: existence and properties of interface prototype object
PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStream interface: attribute locked assert_true: property should be enumerable expected true got false PASS WritableStream interface: attribute locked
FAIL WritableStream interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation abort(optional any)
FAIL WritableStream interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation close()
FAIL WritableStream interface: operation getWriter() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation getWriter()
PASS WritableStream must be primary interface of new WritableStream() PASS WritableStream must be primary interface of new WritableStream()
PASS Stringification of new WritableStream() PASS Stringification of new WritableStream()
PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type
...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name ...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStreamDefaultWriter interface: attribute closed assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute closed
FAIL WritableStreamDefaultWriter interface: attribute desiredSize assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute desiredSize
FAIL WritableStreamDefaultWriter interface: attribute ready assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute ready
FAIL WritableStreamDefaultWriter interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation abort(optional any)
FAIL WritableStreamDefaultWriter interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation close()
FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false
FAIL WritableStreamDefaultWriter interface: operation write(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation write(optional any)
PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter() PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()
PASS Stringification of (new WritableStream()).getWriter() PASS Stringification of (new WritableStream()).getWriter()
PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type
......
...@@ -124,10 +124,10 @@ PASS WritableStream interface object name ...@@ -124,10 +124,10 @@ PASS WritableStream interface object name
PASS WritableStream interface: existence and properties of interface prototype object PASS WritableStream interface: existence and properties of interface prototype object
PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStream interface: attribute locked assert_true: property should be enumerable expected true got false PASS WritableStream interface: attribute locked
FAIL WritableStream interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation abort(optional any)
FAIL WritableStream interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation close()
FAIL WritableStream interface: operation getWriter() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation getWriter()
PASS WritableStream must be primary interface of new WritableStream() PASS WritableStream must be primary interface of new WritableStream()
PASS Stringification of new WritableStream() PASS Stringification of new WritableStream()
PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type
...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name ...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStreamDefaultWriter interface: attribute closed assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute closed
FAIL WritableStreamDefaultWriter interface: attribute desiredSize assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute desiredSize
FAIL WritableStreamDefaultWriter interface: attribute ready assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute ready
FAIL WritableStreamDefaultWriter interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation abort(optional any)
FAIL WritableStreamDefaultWriter interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation close()
FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false
FAIL WritableStreamDefaultWriter interface: operation write(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation write(optional any)
PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter() PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()
PASS Stringification of (new WritableStream()).getWriter() PASS Stringification of (new WritableStream()).getWriter()
PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type
......
...@@ -124,10 +124,10 @@ PASS WritableStream interface object name ...@@ -124,10 +124,10 @@ PASS WritableStream interface object name
PASS WritableStream interface: existence and properties of interface prototype object PASS WritableStream interface: existence and properties of interface prototype object
PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property PASS WritableStream interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStream interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStream interface: attribute locked assert_true: property should be enumerable expected true got false PASS WritableStream interface: attribute locked
FAIL WritableStream interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation abort(optional any)
FAIL WritableStream interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation close()
FAIL WritableStream interface: operation getWriter() assert_true: property should be enumerable expected true got false PASS WritableStream interface: operation getWriter()
PASS WritableStream must be primary interface of new WritableStream() PASS WritableStream must be primary interface of new WritableStream()
PASS Stringification of new WritableStream() PASS Stringification of new WritableStream()
PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type PASS WritableStream interface: new WritableStream() must inherit property "locked" with the proper type
...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name ...@@ -141,13 +141,13 @@ PASS WritableStreamDefaultWriter interface object name
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property
PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property PASS WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property
FAIL WritableStreamDefaultWriter interface: attribute closed assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute closed
FAIL WritableStreamDefaultWriter interface: attribute desiredSize assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute desiredSize
FAIL WritableStreamDefaultWriter interface: attribute ready assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: attribute ready
FAIL WritableStreamDefaultWriter interface: operation abort(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation abort(optional any)
FAIL WritableStreamDefaultWriter interface: operation close() assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation close()
FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false FAIL WritableStreamDefaultWriter interface: operation releaseLock() assert_true: property should be enumerable expected true got false
FAIL WritableStreamDefaultWriter interface: operation write(optional any) assert_true: property should be enumerable expected true got false PASS WritableStreamDefaultWriter interface: operation write(optional any)
PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter() PASS WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()
PASS Stringification of (new WritableStream()).getWriter() PASS Stringification of (new WritableStream()).getWriter()
PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type PASS WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "closed" with the proper type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment