Skip to content

Commit

Permalink
patched issue mozilla#44 and mozilla#52
Browse files Browse the repository at this point in the history
  • Loading branch information
Shing Lyu committed Nov 4, 2014
1 parent a12c27e commit 67646cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cfa2/jscfa.js
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ Aobj.prototype.toType = function(seenObjs) {
if (c === undefined) return "Global Object";
c.forEachObj(function(o) {if (o["-fun"]) types.push(o["-fun"].fname.name);});
if (types.length === 0)
throw errorWithCode(CFA_ERROR, "Didn't find a name for constructor");
return ("any");
normalizeUnionType(types);
if (types.length === 1) {
if (types[0] === "Array") return this.toArrayType(seenObjs);
Expand Down
1 change: 1 addition & 0 deletions lib/jsctags/ctags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports.Tags = function (initialTags) {
};

exports.Tags.prototype = Object.create(Object.prototype, Trait.compose(Trait({
tags: [],
_search: function (id, pred) {
var shadowTag = { name: id };
var tags = this.tags;
Expand Down

0 comments on commit 67646cd

Please sign in to comment.