gcanti/tcomb-json-schema

IE8 error with 'null' type

Closed this issue · 2 comments

Error "Expected identifier, string or number" caused by this line 110 from index.js:

  null: function () {
    return util.Null;
  }

Seems like it's happened due to 'null' preserved keyword in IE8, so I changed this with:

  "null": function () {
    return util.Null;
  }

Hi @Joran182to, thanks for reporting. Would you like to send a PR?