fix: make di compat property non-enumerable

This commit is contained in:
Nico Rehwaldt
2022-08-17 21:12:50 +02:00
committed by fake-join[bot]
parent 704e4872af
commit b472823f25

View File

@ -65,6 +65,7 @@ export function ensureCompatDiRef(businessObject) {
// bpmnElement can have multiple independent DIs
if (!has(businessObject, 'di')) {
Object.defineProperty(businessObject, 'di', {
enumerable: false,
get: function() {
throw new Error(DI_ERROR_MESSAGE);
}