From 81f240e270cf4daa1a053c77bfefe1113241cad8 Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Fri, 5 Mar 2021 14:44:55 +0100 Subject: [PATCH] bugfix for reference @0 --- src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/index.js b/src/js/index.js index 34b2d4c..b1d0d12 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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) {