Skip to content

type 'Null' is not a subtype of type 'Function' #30

@Ritsz123

Description

@Ritsz123

var callee = eval(expression.callee, context);

add a null check here.

if value of callee evaluates to null then it throws an exception stating type 'Null' is not a subtype of type 'Function'

as of now i've handled it in our project by explicitly checking callee value in this way


final callee = eval(expression.callee, context);
    if (callee == null) {
      return;
    }
    return evalCallExpression(expression, context);

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