Uh oh!
There was an error while loading. Please reload this page.
Fix building without ICU - #14489
Conversation
jasnell
commented
Jul 27, 2017
Argh... we seriously need to get building without ICU enabled by default as part of the normal CI run. |
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM. Only lightly reviewed, mostly rubber-stamp.
@jasnell That's nodejs/build#419.
TimothyGu
commented
Jul 30, 2017
@jasnell I assume your comment was a LGTM? |
626437c to
67493e8CompareTimothyGu
commented
Jul 30, 2017
I modified this PR to offer a |
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.
jasnell
left a comment
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.
refack
left a comment
There was a problem hiding this comment.
Looks good.
I've hit that "ICU missing" wall several times... good riddance.
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.
There was a problem hiding this comment.
Wrapped in doesNotThrow. We don't really care about the inspection results as long as it works 😉
There was a problem hiding this comment.
Could you add the Type of the expected Error.
There was a problem hiding this comment.
Same comments as in test-whatwg-encoding-textencoder.js#L24 & L28
There was a problem hiding this comment.
You could use a simple string, should be semantically the same as an anchored RegExp.
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
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...
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.
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.
@jasnell Changed so that there's less duplication. Tried to kick off a CI w/o ICU: |
After the V8 6.0 update, the V8 Pushed one more fix to address this situation. New no ICU CI: https://ci.nodejs.org/job/node-test-commit/11505/ |
TimothyGu
commented
Aug 5, 2017
Landed in 34d1b11...17547c4. |
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>
addaleax
commented
Aug 10, 2017
This doesn’t land cleanly on 8.x; if you can, please follow the guide and raise a backport PR. |
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>
TimothyGu
commented
Aug 12, 2017
MylesBorins
commented
Aug 16, 2017
Is this needed on v6.x? |
MylesBorins
commented
Sep 19, 2017
ping. this would need to be manually backported |
Corresponding documentation changes for encoding will be folded into #14486.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
encoding, test