(f *baseJsFuncObject, strict bool)
| 597 | } |
| 598 | |
| 599 | func (r *Runtime) initBaseJsFunction(f *baseJsFuncObject, strict bool) { |
| 600 | v := &Object{runtime: r} |
| 601 | |
| 602 | f.class = classFunction |
| 603 | f.val = v |
| 604 | f.extensible = true |
| 605 | f.strict = strict |
| 606 | f.prototype = r.getFunctionPrototype() |
| 607 | } |
| 608 | |
| 609 | func (r *Runtime) newMethod(name unistring.String, length int, strict bool) (f *methodFuncObject) { |
| 610 | f = &methodFuncObject{} |
no test coverage detected