Replace codePointToString with ES6 method

This commit is contained in:
mAAdhaTTah 2018-11-03 14:00:42 -04:00
parent 4521204ea0
commit b593af17a9

View File

@ -402,7 +402,7 @@ export default class Tokenizer extends LocationParser {
} else {
this.raise(
this.state.pos,
`Unexpected character '${codePointToString(code)}'`,
`Unexpected character '${String.fromCodePoint(code)}'`,
);
}
}