1
0
Fork 0
mirror of synced 2024-09-25 13:51:40 +12:00

fix issue with js bindings not using quotes

This commit is contained in:
Peter Clement 2024-09-23 14:43:46 +01:00
parent 7d4aa25244
commit c083fe3bd7

View file

@ -643,8 +643,8 @@
runtimeName = `loop.${name}` runtimeName = `loop.${name}`
} else if (block.name.startsWith("JS")) { } else if (block.name.startsWith("JS")) {
runtimeName = hasUserDefinedName runtimeName = hasUserDefinedName
? `stepsByName[${bindingName}].${name}` ? `stepsByName["${bindingName}"].${name}`
: `steps[${idx - loopBlockCount}].${name}` : `steps["${idx - loopBlockCount}"].${name}`
} else { } else {
runtimeName = hasUserDefinedName runtimeName = hasUserDefinedName
? `stepsByName.${bindingName}.${name}` ? `stepsByName.${bindingName}.${name}`