| 1326 | } |
| 1327 | |
| 1328 | ResultType Object::Clone(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount) |
| 1329 | { |
| 1330 | if (GetNativeBase() != Object::sPrototype) |
| 1331 | _o_throw(ERR_TYPE_MISMATCH, ErrorPrototype::Type); // Cannot construct an instance of this class using Object::Clone(). |
| 1332 | auto clone = new Object(); |
| 1333 | if (!CloneTo(*clone)) |
| 1334 | _o_throw_oom; |
| 1335 | _o_return(clone); |
| 1336 | } |
| 1337 | |
| 1338 | ResultType Map::Clone(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount) |
| 1339 | { |
nothing calls this directly
no test coverage detected