Re: [whatwg/streams] assert invariants in InvokeOrNoop and friends (#584)

isonmad commented on this pull request.



> @@ -62,6 +62,10 @@ exports.IsFiniteNonNegativeNumber = v => {
 };
 
 exports.InvokeOrNoop = (O, P, args) => {
+  assert(exports.typeIsObject(O) === true);
+  assert(typeof P === 'string');
+  assert(Array.isArray(args));

The helpers were already a bit inconsistent so it's just InvokeOrNoop we'd remove it from; `PromiseInvokeOrFallbackOrNoop` never created empty Lists if `args1` or `args2` were undefined.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/584

Received on Monday, 31 October 2016 21:29:22 UTC