mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-05 18:50:28 -04:00
Merge pull request #737 from paulkaplan/fix-say-non-string
Fix say/think with non-string inputs
This commit is contained in:
commit
fe30683d37
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ class Scratch3LooksBlocks {
|
||||||
|
|
||||||
say (args, util) {
|
say (args, util) {
|
||||||
// @TODO in 2.0 calling say/think resets the right/left bias of the bubble
|
// @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) {
|
sayforsecs (args, util) {
|
||||||
|
@ -256,7 +256,7 @@ class Scratch3LooksBlocks {
|
||||||
}
|
}
|
||||||
|
|
||||||
think (args, util) {
|
think (args, util) {
|
||||||
this._updateBubble(util.target, 'think', args.MESSAGE);
|
this._updateBubble(util.target, 'think', String(args.MESSAGE));
|
||||||
}
|
}
|
||||||
|
|
||||||
thinkforsecs (args, util) {
|
thinkforsecs (args, util) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue