Skip to content

Empty module crashes interpreter #37

Closed
@KristofferC

Description

@KristofferC
julia> stack = JuliaInterpreter.JuliaStackFrame[];

julia> JuliaInterpreter.interpret!(stack, Main, :(module Foo end))
ERROR: UndefVarError: ret not defined
Stacktrace:
 [1] interpret!(::Array{JuliaStackFrame,1}, ::Module, ::Expr) at C:\Users\Kristoffer\Debugging\JuliaInterpreter\src\JuliaInterpreter.jl:788
 [2] interpret!(::Array{JuliaStackFrame,1}, ::Module, ::Expr) at C:\Users\Kristoffer\Debugging\JuliaInterpreter\src\JuliaInterpreter.jl:769
 [3] top-level scope at none:0

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