Skip to content

Environment constructors should check input and return Result #986

@lionel-

Description

@lionel-

Environment methods are doing dangerous things with inner (e.g. defineVar()) which hasn't been sufficiently type-checked.

E.g. here we are not checking that input is an environment:

pub fn new(env: RObject) -> Self {

Metadata

Metadata

Assignees

No one assigned

    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