Merge pull request #737 from paulkaplan/fix-say-non-string

Fix say/think with non-string inputs
This commit is contained in:
Paul Kaplan 2017-10-31 09:16:12 -04:00 committed by GitHub
commit fe30683d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,7 @@ class Scratch3LooksBlocks {
say (args, util) {
// @TODO in 2.0 calling say/think resets the right/left bias of the bubble
this._updateBubble(util.target, 'say', args.MESSAGE);
this._updateBubble(util.target, 'say', String(args.MESSAGE));
}
sayforsecs (args, util) {
@ -256,7 +256,7 @@ class Scratch3LooksBlocks {
}
think (args, util) {
this._updateBubble(util.target, 'think', args.MESSAGE);
this._updateBubble(util.target, 'think', String(args.MESSAGE));
}
thinkforsecs (args, util) {