| 1038 | return undefined; |
| 1039 | |
| 1040 | const willBeCaught = currentFrame => { |
| 1041 | while (currentFrame) { |
| 1042 | if (currentFrame.script.isInCatchScope(currentFrame.offset)) |
| 1043 | return true; |
| 1044 | currentFrame = currentFrame.older; |
| 1045 | } |
| 1046 | return false; |
| 1047 | }; |
| 1048 | |
| 1049 | if (options.ignoreCaughtExceptions && willBeCaught(frame)) |
| 1050 | return undefined; |