| 13299 | |
| 13300 | |
| 13301 | bool Line::CatchThis(ExprTokenType &aThrown) // ACT_CATCH |
| 13302 | { |
| 13303 | auto args = (CatchStatementArgs *)mAttribute; |
| 13304 | if (!args || !args->prototype_count) |
| 13305 | return Object::HasBase(aThrown, ErrorPrototype::Error); |
| 13306 | for (int i = 0; i < args->prototype_count; ++i) |
| 13307 | if (Object::HasBase(aThrown, args->prototype[i])) |
| 13308 | return true; |
| 13309 | return false; |
| 13310 | } |
| 13311 | |
| 13312 | |
| 13313 |