Re: [whatwg/dom] Define a 'CancellationController' and 'CancellationSignal' interface. (#434)

Per conversation with @annevk on IRC: I'd like to see a cross-realm way to unforgeably determine if the rejection reason is a cancellation or not - comparing to a string property, or using `Object.prototype.toString.call` output, is not sufficient, and neither is `instanceof`. In other words, for all the same reasons `Array.isArray` exists - which does a brand check that can't be faked or tampered with - it'd be ideal to have something like `CancelException.is()` or similar.

-- 
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/dom/pull/434#issuecomment-292470236

Received on Friday, 7 April 2017 08:05:56 UTC