| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Argh... we seriously need to get building without ICU enabled by default as part of the normal CI run. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Only lightly reviewed, mostly rubber-stamp.
@jasnell That's nodejs/build#419.
Sorry, something went wrong.
|
@jasnell I assume your comment was a LGTM? |
Sorry, something went wrong.
|
I modified this PR to offer a TextDecoder with reduced functionalities even when built without ICU. @jasnell @bnoordhuis please review. |
Sorry, something went wrong.
There was a problem hiding this comment.
s/options/option
Sorry, something went wrong.
There was a problem hiding this comment.
This change does not look related?
Sorry, something went wrong.
There was a problem hiding this comment.
This is necessary to fix building (and testing) on ICU, since the JS implementation can only distinguish between wide/narrow.
Sorry, something went wrong.
There was a problem hiding this comment.
Code change looks good, tho I'd prefer a bit less code duplication on the two TextDecoder variants.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good.
I've hit that "ICU missing" wall several times... good riddance.
Sorry, something went wrong.
There was a problem hiding this comment.
Don't you want to assert anything about the output string? Or at least wrap in assert.doesNotThrow just to be explicit.
Sorry, something went wrong.
There was a problem hiding this comment.
Wrapped in doesNotThrow. We don't really care about the inspection results as long as it works 😉
Sorry, something went wrong.
There was a problem hiding this comment.
Could you add the Type of the expected Error.
Sorry, something went wrong.
There was a problem hiding this comment.
Same comments as in test-whatwg-encoding-textencoder.js#L24 & L28
Sorry, something went wrong.
There was a problem hiding this comment.
You could use a simple string, should be semantically the same as an anchored RegExp.
Sorry, something went wrong.
There was a problem hiding this comment.
Could you add a test asserting the expected message, to test/parallel/test-internal-errors.js, as per the new tweaks in https://github.com/nodejs/node/blob/master/doc/guides/using-internal-errors.md#testing-new-errors
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the reminder, I realized that I also forgot to add the new error code to the docs...
Sorry, something went wrong.
There was a problem hiding this comment.
Actually, the test file only contains more complicated error code processing, like ERR_INVALID_ARG_TYPE. I'll still add the missing docs though.
Sorry, something went wrong.
There was a problem hiding this comment.
The reasoning was "test the message once then assume it's ok everywhere else" but, this will probably get reworked anyway after we finish migrating all the Error, so this is non-blocking.
Sorry, something went wrong.
|
@jasnell Changed so that there's less duplication. Tried to kick off a CI w/o ICU: https://ci.nodejs.org/job/node-test-commit/11502/ https://ci.nodejs.org/job/node-test-commit/11503/ |
Sorry, something went wrong.
Also split up the tests.
|
After the V8 6.0 update, the V8 console is now installed on the global object regardless of whether inspector is actually enabled, and in the case of no-ICU inspector is always disabled, which leads to the test failures :( Pushed one more fix to address this situation. New no ICU CI: https://ci.nodejs.org/job/node-test-commit/11505/ |
Sorry, something went wrong.
PR-URL: #14489 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Also split up the tests. PR-URL: #14489 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
PR-URL: #14489 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
PR-URL: #14489 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
PR-URL: #14489 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
|
This doesn’t land cleanly on 8.x; if you can, please follow the guide and raise a backport PR. |
Sorry, something went wrong.
Note that the resulting package does not work yet due to nodejs/node#14489 not being in 8.3.0.
Also split up the tests. PR-URL: nodejs#14489 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
|
Is this needed on v6.x? |
Sorry, something went wrong.
|
ping. this would need to be manually backported |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Corresponding documentation changes for encoding will be folded into #14486.
Checklist
Affected core subsystem(s)
encoding, test