More robust infinite recursion handling with custom exception (#7882)

* Introduced preliminary idea for infinite recurse exception

* Better handling of infinite recursion

But it could be better still...

* the TransclusionError is a proper error

Moved the magic number to be on the error's class. Not sure if that's
a great idea.

* Fixed minor minor issue that came up in conflict

The minor fix to the jasmine regexp that escaped a '+' somehow
broke some random test.
This commit is contained in:
Cameron Fischer
2024-05-25 05:56:19 -04:00
committed by GitHub
parent 074d35c388
commit e932b09016
5 changed files with 92 additions and 9 deletions

View File

@@ -7,7 +7,8 @@ title: Output
\whitespace trim
<$transclude $tiddler="Output"/>
+
title: ExpectedResult
<p><span class="tc-error">Recursive transclusion error in transclude widget</span></p>
<span class="tc-error">Recursive transclusion error in transclude widget</span>