Re: Native Assertion module?

2012-02-14 Thread Dean Landolt
On Tue, Feb 14, 2012 at 1:50 PM, John J Barton wrote: > On Tue, Feb 14, 2012 at 10:45 AM, Rick Waldron > wrote: > > > > > > On Tue, Feb 14, 2012 at 1:51 AM, David Herman > wrote: > >> > >> On Feb 13, 2012, at 4:03 PM, Rick Waldron wrote: > >> > >> > I speak for myself and my colleagues when I sa

Re: Native Assertion module?

2012-02-14 Thread John J Barton
On Tue, Feb 14, 2012 at 10:45 AM, Rick Waldron wrote: > > > On Tue, Feb 14, 2012 at 1:51 AM, David Herman wrote: >> >> On Feb 13, 2012, at 4:03 PM, Rick Waldron wrote: >> >> > I speak for myself and my colleagues when I say that we've had our fill >> > of including scripts _just_ for the sake of

Re: Native Assertion module?

2012-02-14 Thread Rick Waldron
On Tue, Feb 14, 2012 at 1:51 AM, David Herman wrote: > On Feb 13, 2012, at 4:03 PM, Rick Waldron wrote: > > > I speak for myself and my colleagues when I say that we've had our fill > of including scripts _just_ for the sake of having a common testing > interface. > > A reasonable point. OTOH, I

Re: Native Assertion module?

2012-02-14 Thread Wes Garland
There's both room and need for a built-in assert() IMHO -- I would like one which magically compiles to nothing in production code. ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Native Assertion module?

2012-02-13 Thread David Herman
On Feb 13, 2012, at 6:43 PM, Dean Landolt wrote: > On a related note: has anyone given any thought to what shims should do about > emulating @std modules? Or is there a programmatic loader API that's easy > enough to shim in? That would make this kind of cowpath-paving far more > fruitful. The

Re: Native Assertion module?

2012-02-13 Thread David Herman
On Feb 13, 2012, at 4:03 PM, Rick Waldron wrote: > I speak for myself and my colleagues when I say that we've had our fill of > including scripts _just_ for the sake of having a common testing interface. A reasonable point. OTOH, I wouldn't want to over-engineer. And the larger the API, the ha

Re: Native Assertion module?

2012-02-13 Thread Bill Frantz
On 2/13/12 at 16:03, waldron.r...@gmail.com (Rick Waldron) wrote: Forget Date, typeof null, etc. JavaScript's biggest problem is devs that don't test their code. IMHO, things started going to the dogs in the mid-1970s when IBM decided to "manage" bugs instead of fixing them. It't been downh

Re: Native Assertion module?

2012-02-13 Thread Dean Landolt
On Mon, Feb 13, 2012 at 7:03 PM, Rick Waldron wrote: > > > On Feb 13, 2012, at 2:21 PM, Domenic Denicola > wrote: > > >> If you do a native Assertion module, maybe it should be similar to > node's. > > > >> > > > > It's worth noting that Node's asse

Re: Native Assertion module?

2012-02-13 Thread Rick Waldron
On Feb 13, 2012, at 2:21 PM, Domenic Denicola wrote: >> If you do a native Assertion module, maybe it should be similar to node's. > >> > > It's worth noting that Node's assert is almost (?) identical to CommonJS's > Unit Testing spec [1]. I'm

RE: Native Assertion module?

2012-02-13 Thread Domenic Denicola
> If you do a native Assertion module, maybe it should be similar to node's. > It's worth noting that Node's assert is almost (?) identical to CommonJS's Unit Testing spec [1]. I'm not sure which came first. Regardless, I think this is the job for

Re: Native Assertion module?

2012-02-13 Thread Brendan Eich
I recall something from ES4 days but can find only http://wiki.ecmascript.org/doku.php?id=proposals:debug_helpers A built-in assert special form recognized by the compiler could be passed a quoted string of its expression, along with source coordinates. /be Rick Waldron wrote: I was wonderin