(proto)
| 43 | } |
| 44 | |
| 45 | function CreateFromConstructor(proto) { |
| 46 | function C() {} |
| 47 | new C().b = 9; // Make sure that we can have an in-object property. |
| 48 | C.prototype = proto; |
| 49 | return function() { |
| 50 | return new C(); |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | function CreateFromApi(proto) { |
| 55 | return function() { |