bugfix for reference @0

This commit is contained in:
Sander Hautvast 2021-03-05 14:44:55 +01:00
parent fe0bcd8622
commit 81f240e270

View file

@ -144,7 +144,7 @@ const handle_enter = function () {
if (value.is_binding) { // if it's declaration work with the initializer
binding = value.name; // but we also need the name of the bound variable
value = state[binding]; // lookup the value for the binding
} else if (value.id) {
} else if (Object.prototype.hasOwnProperty.call(value, ['id'])) {
references['@' + value.id] = value;
}
while (value.lazy_expression) {