diff --git a/lib/node.js b/lib/node.js index 5e651b72..d4a6af74 100644 --- a/lib/node.js +++ b/lib/node.js @@ -1293,7 +1293,7 @@ class Node extends rclnodejs.ShadowNode { * @return {ParameterDescriptor[]} - The parameter descriptors. */ getParameterDescriptors(names = []) { - const descriptors = []; + let descriptors = []; if (names.length == 0) { // get all parameters