()
| 296 | } |
| 297 | |
| 298 | func (r *Runtime) getAsyncFunctionPrototype() *Object { |
| 299 | var o *Object |
| 300 | if o = r.global.AsyncFunctionPrototype; o == nil { |
| 301 | o = &Object{runtime: r} |
| 302 | r.global.AsyncFunctionPrototype = o |
| 303 | o.self = r.createAsyncFunctionProto(o) |
| 304 | } |
| 305 | return o |
| 306 | } |
| 307 | |
| 308 | func (r *Runtime) createAsyncFunction(val *Object) objectImpl { |
| 309 | o := r.newNativeFuncConstructObj(val, r.builtin_asyncFunction, "AsyncFunction", r.getAsyncFunctionPrototype(), 1) |
no test coverage detected