Skip to content

Bug report: Magic operation doesn't work #959

@cmaloney3030

Description

@cmaloney3030

Describe the bug
Trying to call the Magic operation returns the error: "Cannot read property 'undefined' of undefined"

To Reproduce
I started off by trying one of your examples and just changed the operation. When the op was "from morse code" it worked correctly, but does not work when given this input:

curl -X POST -H "Content-Type:application/json" -d '{"input":"... ---:.-.. --- -. --. --..--:.- -. -..:- .... .- -. -.- ...:..-. --- .-.:.- .-.. .-..:- .... .:..-. .. ... ....", "recipe":{"op":"Magic","args":[3,false,false,""]}}' localhost:3000/bake

Expected behavior
The same output as the "from morse code" operation

Node version:
v10.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnodeissues relating to the node API interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions