(ctor)
| 377 | } |
| 378 | |
| 379 | function emptyObj(ctor) { |
| 380 | var empty = Object.create(ctor.prototype); |
| 381 | empty.props = Object.create(null); |
| 382 | empty.isShell = true; |
| 383 | return empty; |
| 384 | } |
| 385 | |
| 386 | function isSimpleAnnotation(spec) { |
| 387 | if (!spec["!type"] || /^(fn\(|\[|\+)/.test(spec["!type"])) return false; |