Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug in externalize, internalize functions #825

Open
@dave

Description

@dave

There's a bug in the externalize and internalize prelude functions. They both access the first struct field before checking if there's no fields (here and here)... here's a simple demo which throws a JS exception Cannot read property 'prop' of undefined:

https://play.jsgo.io/308c189e795b573511cbc4d4606af6b0a60a065a

I've fixed it here: #824

p.s. I don't have node so I didn't run the uglify script... Perhaps someone can do that for me?

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