@@ -15333,7 +15333,7 @@ namespace ts {
1533315333 const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, node);
1533415334 if (intrinsicElementsType !== unknownType) {
1533515335 // Property case
15336- if (!isIdentifier(node.tagName)) throw Debug.fail();
15336+ if (!isIdentifier(node.tagName)) return Debug.fail();
1533715337 const intrinsicProp = getPropertyOfType(intrinsicElementsType, node.tagName.escapedText);
1533815338 if (intrinsicProp) {
1533915339 links.jsxFlags |= JsxFlags.IntrinsicNamedElement;
@@ -18106,7 +18106,7 @@ namespace ts {
1810618106 }
1810718107
1810818108 // Make sure require is not a local function
18109- if (!isIdentifier(node.expression)) throw Debug.fail();
18109+ if (!isIdentifier(node.expression)) return Debug.fail();
1811018110 const resolvedRequire = resolveName(node.expression, node.expression.escapedText, SymbolFlags.Value, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true);
1811118111 if (!resolvedRequire) {
1811218112 // project does not contain symbol named 'require' - assume commonjs require
@@ -21841,7 +21841,7 @@ namespace ts {
2184121841
2184221842 const symbol = getSymbolOfNode(node);
2184321843 if (symbol.flags & SymbolFlags.FunctionScopedVariable) {
21844- if (!isIdentifier(node.name)) throw Debug.fail();
21844+ if (!isIdentifier(node.name)) return Debug.fail();
2184521845 const localDeclarationSymbol = resolveName(node, node.name.escapedText, SymbolFlags.Variable, /*nodeNotFoundErrorMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false);
2184621846 if (localDeclarationSymbol &&
2184721847 localDeclarationSymbol !== symbol &&
0 commit comments