sebastianzartner at gmail.com
Sun Jan 27 12:50:57 UTC 2019
console.assert is standardized by the WHATWG at
On Mon, 14 Jan 2019 at 12:39, Michael Haufe <tno at thenewobjective.com> wrote:
> console.assert is not standardized at this point, nor is it part of the
> language. Additionally, the semantics are inappropriate for the required
> use cases.
> To requote the relevant part from the linked thread:
> 1. AssertionError <: Error
> 2. assert(x === 12); // throws an AssertionError with a default error
> 3. assert(x === 12, "twelve, supposedly") // throws an AssertionError with
> the given error message
> console.assert does not throw and its intent is not the same. The assert
> I'm referring to is related to Code Contracts. Therefore your reference is
> seemingly orthogonal.
> On Sun, Jan 13, 2019, 12:49 Cyril Auburtin <cyril.auburtin at gmail.com
>> There's `console.assert`
>> also check
>> On Sun, Dec 16, 2018 at 10:01 PM Michael Haufe <tno at thenewobjective.com>
>>> Seven years ago there was discussion around standardizing "assert". Has
>>> there been any movement on this since then?
>>> es-discuss mailing list
>>> es-discuss at mozilla.org
>> es-discuss mailing list
>> es-discuss at mozilla.org
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss