Freeze DEFAULT_ATTR_DATA to hard fail when not cloned

This commit is contained in:
Daniel Imms
2019-06-06 15:05:34 -07:00
parent 767eec3a2c
commit d271095e28
+1 -1
View File
@@ -217,7 +217,7 @@ export class AttributeData implements IAttributeData {
}
}
export const DEFAULT_ATTR_DATA = new AttributeData();
export const DEFAULT_ATTR_DATA = Object.freeze(new AttributeData());
/**
* CellData - represents a single Cell in the terminal buffer.