Skip to content

Commit 03e3796

Browse files
committed
Add InvalidCharacterError
1 parent f43a69a commit 03e3796

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

parse-css.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ function badescape(code) { return newline(code) || isNaN(code); }
2626

2727
var maximumallowedcodepoint = 0x10ffff;
2828

29+
var InvalidCharacterError = function(message) {
30+
this.message = message;
31+
};
32+
InvalidCharacterError.prototype = new Error;
33+
InvalidCharacterError.prototype.name = 'InvalidCharacterError';
34+
2935
function preprocess(str) {
3036
// Turn a string into an array of code points,
3137
// following the preprocessing cleanup rules.

0 commit comments

Comments
 (0)