Skip to content

Blockfactory outputs bogus generator stubs for statment inputs #225

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Go to https://blockly-demo.appspot.com/static/apps/blockfactory/index.html
2. From the input menu add a statement input block
3. Observe code in the Generator stub text area.

What is the expected output? What do you see instead?
Expected:
var statements_name = Blockly.JavaScript.statementToCode(block, 'NAME');
Actual:
var statements_name = Blockly.' + language + '.statementToCode(block, 'NAME');


What browser are you using?
Chrome 32.0.1700.77

Please provide any additional information below.
It seems there is a quoting issue on this line.
https://code.google.com/p/blockly/source/browse/trunk/apps/blockfactory/factory.
js#351

The line should read:
" = Blockly." + language + ".statementToCode(block, '" +


Original issue reported on code.google.com by Techplex.Engineer on 11 May 2014 at 2:38

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions