feat: Context::destroy

This commit is contained in:
cha0s 2019-06-05 20:12:21 -05:00
parent e690967cb8
commit da941e0e39

View File

@ -33,6 +33,10 @@ class Context extends Map {
return compiled.get(traversal.hash);
}
destroy() {
super.clear();
}
renderStepsUntilNow(steps, step) {
const stepsUntilNow = steps.slice(0, steps.indexOf(step));
return TypeMap.renderSteps(stepsUntilNow);