Merge pull request #867 from paulkaplan/fix-say-numbers

Cast to string before asking question. Same as say blocks do.
This commit is contained in:
Paul Kaplan 2017-12-18 14:52:00 -05:00 committed by GitHub
commit 1475d95e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ class Scratch3SensingBlocks {
const _target = util.target;
return new Promise(resolve => {
const isQuestionAsked = this._questionList.length > 0;
this._enqueueAsk(args.QUESTION, resolve, _target, _target.visible, _target.isStage);
this._enqueueAsk(String(args.QUESTION), resolve, _target, _target.visible, _target.isStage);
if (!isQuestionAsked) {
this._askNextQuestion();
}