UNPKG

jsctags

Version:
20 lines (15 loc) 339 B
// Issue #16 var f = function(n) { n.prototype = {}; // Make this count as a type construction function f(n()); // Push an IsCallee constraint from the body }; f(f); // Create a self-referential type var x = [x]; // Force analysis x[0]; //: [?] function goop(n) { n.prototype = {}; return function(f){f(1);}; }; goop(1)(goop);