Update test dependencies (#414)

This commit is contained in:
Richie Bendall 2020-10-04 10:56:24 +13:00 committed by GitHub
parent b31d6fb48a
commit c0d8e7ed8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 47 deletions

View file

@ -22,11 +22,11 @@ function unescape(c) {
const bracket = c[1] === '{';
if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
return String.fromCharCode(parseInt(c.slice(1), 16));
return String.fromCharCode(Number.parseInt(c.slice(1), 16));
}
if (u && bracket) {
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
return String.fromCodePoint(Number.parseInt(c.slice(2, -1), 16));
}
return ESCAPES.get(c) || c;