mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #11810 from Snuffleupagus/fromCodePoint-followup
A couple of small `String.fromCodePoint` improvements (PR 11698 and 11769 follow-up)
This commit is contained in:
commit
a7def05aa1
4 changed files with 8 additions and 1 deletions
|
@ -2587,7 +2587,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
code = unicode;
|
||||
}
|
||||
}
|
||||
if (code > 0 && Number.isInteger(code)) {
|
||||
if (code > 0 && code <= 0x10ffff && Number.isInteger(code)) {
|
||||
// If `baseEncodingName` is one the predefined encodings, and `code`
|
||||
// equals `charcode`, using the glyph defined in the baseEncoding
|
||||
// seems to yield a better `toUnicode` mapping (fixes issue 5070).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue