Skip to content

Commit

Permalink
Allow negative enum ids even if super inefficient (encodes as 10 byte…
Browse files Browse the repository at this point in the history
…s), fixes #499, fixes #500 [ci skip]
  • Loading branch information
dcodeIO committed Nov 29, 2016
1 parent 6376983 commit 27a3a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function parse(source, root) {
throw illegal(token, s_name);
var name = token;
skip("=");
var value = parseId(next());
var value = parseNumber(next());
parseInlineOptions(parent.values[name] = new Number(value)); // eslint-disable-line no-new-wrappers
}

Expand Down

0 comments on commit 27a3a95

Please sign in to comment.