Bug 1500822 - Fix a try-note range check in the debugger r=jorendorff
This should symptomless since the extra op should always be a JSOP_GOTO
which will be skipped over anyways. Fix for our sanity.
Differential Revision:
https://phabricator.services.mozilla.com/D9422
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -7464,17 +7464,17 @@ class DebuggerScriptIsInCatchScopeMatche
ReturnType match(HandleScript script) {
if (!EnsureScriptOffsetIsValid(cx_, script, offset_)) {
return false;
}
if (script->hasTrynotes()) {
for (const JSTryNote& tn : script->trynotes()) {
if (tn.start <= offset_ &&
- offset_ <= tn.start + tn.length &&
+ offset_ < tn.start + tn.length &&
tn.kind == JSTRY_CATCH)
{
isInCatch_ = true;
return true;
}
}
}
isInCatch_ = false;