3 ms·
Sadly, if I paste that in, I get: >>> import js ... c = js.globals.document.createElement("canvas") ... debug: OperationError: debug: o
by fragmede 12y ago
Sadly, if I paste that in, I get:
>>> import js
... c = js.globals.document.createElement("canvas")
...
debug: OperationError:
debug: operror-type: SyntaxError
debug: operror-value: ('EOL while scanning string literal', ('c callback', 1, 12, "r = c.push('import js\n", 0))
debug: OperationError:
debug: operror-type: KeyError
debug: operror-value: 'r'
And then the input window hangs. Strangely enough, if I type it in instead, it's okay.
(ChromeOS v43 beta-channel)
- Retr0spectrum 12y agoI think the only way around it is to paste each line separately. It seems to be caused by newline characters in the wrong place
- fragmede 12y ago'that' refers to import js c = js.globals.document.createElement("canvas") and not the pastebin. The pastebin works for me, but only the first time. Subsequent runs result in: <RuntimeError object at 0x15d648> RPython traceback: ... Fatal RPython error: