File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1397,9 +1397,9 @@ op.getstrfromname = function(name) {
1397
1397
let codePoint ;
1398
1398
let codePoints ;
1399
1399
1400
- if ( codePoint = ucd . nameToCodePoint ( uppercased ) ) {
1400
+ if ( ( codePoint = ucd . nameToCodePoint ( uppercased ) ) !== undefined ) {
1401
1401
return String . fromCodePoint ( codePoint ) ;
1402
- } else if ( codePoint = ucd . aliasToCodePoint ( uppercased ) ) {
1402
+ } else if ( ( codePoint = ucd . aliasToCodePoint ( uppercased ) ) !== undefined ) {
1403
1403
return String . fromCodePoint ( codePoint ) ;
1404
1404
} else if ( codePoints = ucd . sequenceToCodePoints ( uppercased ) ) {
1405
1405
return codePoints . map ( codePoint => String . fromCodePoint ( codePoint ) ) . join ( '' ) ;
@@ -1411,9 +1411,9 @@ op.getstrfromname = function(name) {
1411
1411
op . codepointfromname = function ( name ) {
1412
1412
let codePoint ;
1413
1413
1414
- if ( codePoint = ucd . nameToCodePoint ( name ) ) {
1414
+ if ( ( codePoint = ucd . nameToCodePoint ( name ) ) !== undefined ) {
1415
1415
return codePoint ;
1416
- } else if ( codePoint = ucd . aliasToCodePoint ( name ) ) {
1416
+ } else if ( ( codePoint = ucd . aliasToCodePoint ( name ) ) !== undefined ) {
1417
1417
return codePoint ;
1418
1418
} else {
1419
1419
return - 1 ;
You can’t perform that action at this time.
0 commit comments