| 11484 | |
| 11485 | |
| 11486 | void ObjectToString(ResultToken &aResultToken, ExprTokenType &aThisToken, IObject *aObject) |
| 11487 | { |
| 11488 | // Something like this should be done for every TokenToString() call or |
| 11489 | // equivalent, but major changes are needed before that will be feasible. |
| 11490 | // For now, String(anytype) provides a limited workaround. |
| 11491 | switch (aObject->Invoke(aResultToken, IT_CALL, _T("ToString"), aThisToken, nullptr, 0)) |
| 11492 | { |
| 11493 | case INVOKE_NOT_HANDLED: |
| 11494 | aResultToken.UnknownMemberError(aThisToken, IT_CALL, _T("ToString")); |
| 11495 | break; |
| 11496 | case FAIL: |
| 11497 | aResultToken.SetExitResult(FAIL); |
| 11498 | break; |
| 11499 | } |
| 11500 | } |
| 11501 | |
| 11502 | BIF_DECL(BIF_StrCompare) |
| 11503 | { |
no test coverage detected