| 1490 | // |
| 1491 | |
| 1492 | ResultType Object::New(ResultToken &aResultToken, ExprTokenType *aParam[], int aParamCount) |
| 1493 | { |
| 1494 | Object *base = dynamic_cast<Object *>(ParamIndexToObject(0)); |
| 1495 | Object *proto = base ? dynamic_cast<Object *>(base->GetOwnPropObj(_T("Prototype"))) : nullptr; |
| 1496 | if (!proto) |
| 1497 | { |
| 1498 | Release(); |
| 1499 | _o_throw_param(0); |
| 1500 | } |
| 1501 | if (!SetBase(proto, aResultToken)) |
| 1502 | { |
| 1503 | Release(); |
| 1504 | return FAIL; |
| 1505 | } |
| 1506 | return Construct(aResultToken, aParam + 1, aParamCount - 1); |
| 1507 | } |
| 1508 | |
| 1509 | ResultType Object::Construct(ResultToken &aResultToken, ExprTokenType *aParam[], int aParamCount) |
| 1510 | { |
no test coverage detected