@webassemblyjs/utf8
Advanced tools
Comparing version 1.5.9 to 1.5.10
@@ -21,3 +21,3 @@ "use strict"; | ||
function code(min, n) { | ||
if (n < min || 0xd800 <= n && n < 0xe000 || n >= 0x110000) { | ||
if (n < min || 0xd800 <= n && n < 0xe000 || n >= 0x10000) { | ||
throw new Error("invalid UTF-8 encoding"); | ||
@@ -24,0 +24,0 @@ } else { |
{ | ||
"name": "@webassemblyjs/utf8", | ||
"version": "1.5.9", | ||
"version": "1.5.10", | ||
"description": "UTF8 encoder/decoder for WASM", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,3 +10,3 @@ function con(b) { | ||
function code(min, n) { | ||
if (n < min || (0xd800 <= n && n < 0xe000) || n >= 0x110000) { | ||
if (n < min || (0xd800 <= n && n < 0xe000) || n >= 0x10000) { | ||
throw new Error("invalid UTF-8 encoding"); | ||
@@ -13,0 +13,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6789
8
261