You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
The updatePreview() function under block_editor_controller.js uses eval() to evaluate manually inputted block definitions in order to display the user-defined blocks in the preview. Remove the use of eval() in parsing and displaying user-inputted block definitions.
The text was updated successfully, but these errors were encountered:
Potential solution would be to use JSInterpreter. This would require wrapping a whole lot of functions to support the majority of Blockly blocks. It would also take a significant test infrastructure to verify.
The
updatePreview()
function underblock_editor_controller.js
useseval()
to evaluate manually inputted block definitions in order to display the user-defined blocks in the preview. Remove the use ofeval()
in parsing and displaying user-inputted block definitions.The text was updated successfully, but these errors were encountered: