Skip to content

Error thrown: 'await' outside async function #9

@Waldorf-Techie

Description

@Waldorf-Techie

The following program, which works in Glowscript:
https://flaskdstorehost-dhppn6xgeq-uc.a.run.app/#/user/HG_NY/folder/Bezier/program/BezierMeta/edit

Throws the following error in the Alpha testing:

Error:PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 606, in eval_code_async
.compile()
^^^^^^^^^
File "/lib/python312.zip/_pyodide/_base.py", line 297, in compile
self._gen.send(self.ast)
File "/lib/python312.zip/_pyodide/_base.py", line 166, in _parse_and_compile_gen
return compile(mod, filename, mode, flags, dont_inherit, optimize)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 50
SyntaxError: 'await' outside async function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions