-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linting tests #31
Linting tests #31
Conversation
- Linting: Comment out unused variable; mixed tabs/spaces; missing semicolons and "use strict" - Testing: Ensure Linting and coverage are run in `test` for CI (though provide `mocha` and `nyc` scripts for development)
I just added a couple unquoted keyword tests. |
…de matches it - Testing: Invalid comments - Testing: Incomplete Unicode wide escape
also updated to add:
|
I've also just added:
|
Btw, were you saying that for line 452, |
I was not saying that... there was an octal check < 255 that was superfluous.
the else if will happen, when the second hex (\x) character is found... |
the fixed cr_escape handling recognizes it was consumed.... |
Thanks for the merge! As far as the I think this is because, within that else if( hex_char_len == 2 ) {
val.string += String.fromCodePoint( hex_char );
stringHex = false;
stringEscape = false;
} By setting |
That above was really because
doesn't complain. |
let
if
(for coverage)test
for CI (though providemocha
andnyc
scripts for development)Btw, there seems to be one regression, though not reflected in tests. For some reason, when theFiled test for this in #33 which, if fixed, should fix this underlyingpackage.json
file is built, it adds a section aboutrollup-plugin-terser
which I don't see any reason it should be built. But I'd appreciate if you could look at this short PR first as I think the testing procedures here ought to be helpful in preventing some regressions going forward (at least if CI is heeded; one could also add a commit hook to lint there if you like).package.json
issue as well.