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

Reland "Remove NotEnumerable from Writable Streams WebIDL"

This is a reland of a2505c5b

Original change's description:
> 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/+/2485664
> Reviewed-by: Adam Rice <ricea@chromium.org>
> Commit-Queue: Nidhi Jaju <nidhijaju@google.com>
> Cr-Commit-Position: refs/heads/master@{#819181}

Bug: 1093862
Change-Id: Iaf54f395cc649b85cbc834dc18baf94855d53613
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489110
Commit-Queue: Nidhi Jaju <nidhijaju@google.com>
Reviewed-by: default avatarAdam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819563}
parent 974e1b68
...@@ -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] void releaseLock();
[CallWith=ScriptState, RaisesException, NotEnumerable] Promise<void> write( [CallWith=ScriptState, RaisesException] Promise<void> write(
optional any chunk); optional any chunk);
}; };
This is a testharness.js-based test. This is a testharness.js-based test.
Found 224 tests; 128 PASS, 96 FAIL, 0 TIMEOUT, 0 NOTRUN. Found 224 tests; 139 PASS, 85 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup PASS idl_test setup
PASS idl_test validation PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
...@@ -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 PASS WritableStreamDefaultWriter interface: operation releaseLock()
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
......
This is a testharness.js-based test. This is a testharness.js-based test.
Found 224 tests; 128 PASS, 96 FAIL, 0 TIMEOUT, 0 NOTRUN. Found 224 tests; 139 PASS, 85 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup PASS idl_test setup
PASS idl_test validation PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
...@@ -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 PASS WritableStreamDefaultWriter interface: operation releaseLock()
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
......
This is a testharness.js-based test. This is a testharness.js-based test.
Found 224 tests; 128 PASS, 96 FAIL, 0 TIMEOUT, 0 NOTRUN. Found 224 tests; 139 PASS, 85 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup PASS idl_test setup
PASS idl_test validation PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
...@@ -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 PASS WritableStreamDefaultWriter interface: operation releaseLock()
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
......
This is a testharness.js-based test. This is a testharness.js-based test.
Found 224 tests; 128 PASS, 96 FAIL, 0 TIMEOUT, 0 NOTRUN. Found 224 tests; 139 PASS, 85 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup PASS idl_test setup
PASS idl_test validation PASS idl_test validation
PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique PASS ReadableStreamDefaultReader includes ReadableStreamGenericReader: member names are unique
...@@ -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 PASS WritableStreamDefaultWriter interface: operation releaseLock()
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