John Haugeland

Results 253 comments of John Haugeland

```javascript function ArrayWrapOneNumberNeverThrow(n) { return (n === 4.2)? new TypeError('oh noes!') : n; } test( 'lol', expect(ArrayWrapOneNumberNeverThrow( 0 )).toBe( [0] ) ); ``` `nyc` will say "that line has coverage...

"the coverage is not correct, here's why" "but it can show coverage, maybe it was old nyc?" i tried twice. oh well

the entire point being that it looks like it's succeeding when it isn't

Hi, I'm not very good at `peg` yet. I want to make sure I'm understanding this correctly. It seems like what you're saying is "I have a rule where `abcd`...

Oh, the error message is confusing ***because*** the forbiddance is a repetition?

Yeah, peg's almost the only parser generator for `javascript` that I consider acceptable Don't worry about being clumsy. We all are

the thing about np complete problems is that you can often still do a pretty decent job heuristically if it's often right and never wrong, then it's a defacto improvement

@zpdDG4gta8XKpMCd - please close this issue. It's a simple bug in your grammar. @futagoza - Please close this issue.

Notably, the example option given here is 95% of what you need for minimalist Typescript support #562 ; this gives you enough to do es6 modules if you just don't...

@polkovnikov-ph - a tagged template string is a function which will be invoked by name when you call ``fname`strtext` ``, where `fname` is the name of the implementing function, and...