| 2802 | |
| 2803 | |
| 2804 | void Debugger::PropertyWriter::WriteDynamicProperty(LPTSTR aName) |
| 2805 | { |
| 2806 | FuncResult result_token; |
| 2807 | ExprTokenType t_this(mProp.this_object ? mProp.this_object : mObject); |
| 2808 | auto excpt_mode = g->ExcptMode; |
| 2809 | g->ExcptMode |= EXCPTMODE_CATCH; |
| 2810 | auto result = mObject->Invoke(result_token, IT_GET, aName, t_this, nullptr, 0); |
| 2811 | g->ExcptMode = excpt_mode; |
| 2812 | if (!result) |
| 2813 | { |
| 2814 | if (g->ThrownToken) |
| 2815 | g_script.FreeExceptionToken(g->ThrownToken); |
| 2816 | result_token.SetValue(_T("<error>"), 7); |
| 2817 | } |
| 2818 | mDbg.AppendPropertyName(mProp.fullname, mNameLength, CStringUTF8FromTChar(aName)); |
| 2819 | _WriteProperty(result_token); |
| 2820 | result_token.Free(); |
| 2821 | } |
| 2822 | |
| 2823 | |
| 2824 | void Debugger::PropertyWriter::_WriteProperty(ExprTokenType &aValue, IObject *aThisOverride) |
no test coverage detected