Skip to content

Do sanity checking of output JavaScript #3

@gingeleski

Description

@gingeleski

Blocked by #2

When this is "compiling" JavaScript via src/compile.py, there should be some "sanity-checking" on the output.

Looks like this would be made possible by adding a requirement (there will be a requirements.txt now)

pip install pyjsparser

Then parse the script and check for an exception like so...

import pyjsparser

try:
    pyjsparser.parse(output_javascript)
except:
    print('Your JavaScript sucks')

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions