Skip to content

Commit

Permalink
test: throw an error
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 7, 2024
1 parent c6f9130 commit f7fdf25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/parse-blocks-scripts-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const parseBlocksScriptsProperties = function(type, version) {

const parseDerivedBinaryProperties = function(version) {
if (version === '3.1.1' || version === '3.1.0' || version === '3.0.1' || version === '3.0.0' || parseInt(version.split('.')[0], 10) < 3) {
throw new Error("Unexpected data");
// Unicode <= 3.1.1 does not provide derived-binary-properties,
// so we should derive Bidi_Mirrored from the UnicodeData
const source = utils.readDataFile(version, 'database');
Expand Down

0 comments on commit f7fdf25

Please sign in to comment.