Skip to content

Commit

Permalink
deps: backport ICU-20575 to fix err/crasher
Browse files Browse the repository at this point in the history
- Floating patch for ICU 64.x
- includes test case

ICU Bug: https://unicode-org.atlassian.net/browse/ICU-20575
Backport of: unicode-org/icu#634
Fixes: #27418

PR-URL: #27435
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
srl295 authored and MylesBorins committed May 16, 2019
1 parent c7931e4 commit f91a818
Show file tree
Hide file tree
Showing 2 changed files with 2,426 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/parallel/test-intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,15 @@ if (!common.hasIntl) {
common.mustCall((e) => assert.ifError(e))
);
}

{
// Regression test for https://github.com/nodejs/node/issues/27418
const env = { ...process.env, LC_ALL: 'fr@EURO' };
execFile(
process.execPath,
['-p', 'new Intl.NumberFormat().resolvedOptions().locale'],
{ env },
common.mustCall((e) => assert.ifError(e))
);
}
}
Loading

0 comments on commit f91a818

Please sign in to comment.