(type, prop)
| 33 | } |
| 34 | |
| 35 | function extractProp(type, prop) { |
| 36 | if (prop == "!ret") { |
| 37 | if (type.retval) return type.retval; |
| 38 | var rv = new infer.AVal; |
| 39 | type.propagate(new infer.IsCallee(infer.ANull, [], null, rv)); |
| 40 | return rv; |
| 41 | } else { |
| 42 | return type.getProp(prop); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | function computedFunc(name, args, retType, generator) { |
| 47 | return function(self, cArgs) { |