Skip to content

Don't panic when a global is missing #9

@cohix

Description

@cohix

Right now Javy will panic if something is missing from global because of line 212 in core/lib.rs:

        let _ = context.eval_global(SCRIPT_NAME, &contents).unwrap();

We should match on that instead of unwrapping and provide a sane error instead of panicking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions