Skip to content

Commit 652d1ea

Browse files
Merge pull request #54 from vpython/Fix_bug_in_input('hello')
Fix bug in input('hello')
2 parents 846d38e + dd2f106 commit 652d1ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/glow/primitives.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2916,6 +2916,7 @@
29162916
function input(arg) { // mimics Python input function
29172917
arg = arg || {}
29182918
if (arg.prompt !== undefined && arg.prompt != '') return prompt(arg.prompt)
2919+
else if (toType(arg) == 'string' ) return prompt(arg)
29192920
else return prompt()
29202921
}
29212922

package/glow.2.9.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)