We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc5387 commit 28cdf48Copy full SHA for 28cdf48
scripts/common.js
@@ -86,10 +86,16 @@ exports.readWrapperFile = function(filename) {
86
var endOfJson = comment.indexOf("\n}")+2;
87
var json = comment.substr(0,endOfJson);
88
var description = comment.substr(endOfJson).trim();
89
- var j = new Builtin(JSON.parse(json));
90
- if (description.length) j.description = description;
91
- j.implementation = filename;
92
- builtins.push(j);
+ try {
+ var j = new Builtin(JSON.parse(json));
+ if (description.length) j.description = description;
+ j.implementation = filename;
93
+ builtins.push(j);
94
+ } catch(e) {
95
+ console.log("Error in ", filename);
96
+ console.log(json);
97
+ console.log(e);
98
+ }
99
});
100
var comments = contents.match( /\/\*TYPESCRIPT(?:(?!\*\/).|[\n\r])*\*\//g );
101
if (comments) comments.forEach(function(comment) {
0 commit comments