-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
RuntimeErrorA bug in Scriggo caused an error/panic at runtimeA bug in Scriggo caused an error/panic at runtimecritical-bugA critical bug, that is a bug that takes precedence over other bugs (for example cannot be bypassed)A critical bug, that is a bug that takes precedence over other bugs (for example cannot be bypassed)disassemblerRelated to disassemblerRelated to disassemblerneedsInvestigationNeed to investigateNeed to investigatetemplatesRelated to the templateRelated to the template
Description
The issue #852 was fixed and tests were added, but these tests do not seem to be extensive enough, and therefore panics occur in the runtime (and possibly in the disassembler).
To reproduce such panics:
"https://github.com/open2b/scriggo/issues/852 - Additional tests #1": {
sources: fstest.Files{
"index.html": `{% import pkg "imported.html" %}a{% macro M %}b{{ pkg.V }}c{% end macro %}d{{ M() }}`,
"imported.html": `{% var V int %}`,
},
expectedOut: "TODO",
},
"https://github.com/open2b/scriggo/issues/852 - Additional tests #2": {
sources: fstest.Files{
"index.html": `{% import pkg "imported.html" %}a{% macro M %}b{{ pkg.V }}c{% end macro %}d{{ M() }}`,
"imported.html": `{% var V int = 42 %}`,
},
expectedOut: "TODO",
},
Metadata
Metadata
Assignees
Labels
RuntimeErrorA bug in Scriggo caused an error/panic at runtimeA bug in Scriggo caused an error/panic at runtimecritical-bugA critical bug, that is a bug that takes precedence over other bugs (for example cannot be bypassed)A critical bug, that is a bug that takes precedence over other bugs (for example cannot be bypassed)disassemblerRelated to disassemblerRelated to disassemblerneedsInvestigationNeed to investigateNeed to investigatetemplatesRelated to the templateRelated to the template