{"action":"opened","issue":{"url":"https://api.github.com/repos/luvit/luvit/issues/898","repository_url":"https://api.github.com/repos/luvit/luvit","labels_url":"https://api.github.com/repos/luvit/luvit/issues/898/labels{/name}","comments_url":"https://api.github.com/repos/luvit/luvit/issues/898/comments","events_url":"https://api.github.com/repos/luvit/luvit/issues/898/events","html_url":"https://github.com/luvit/luvit/issues/898","id":155816193,"number":898,"title":"error() quits interactive luvit, but error(\"hi there\") does not.","user":{"login":"sam-falvo","id":1495032,"avatar_url":"https://avatars.githubusercontent.com/u/1495032?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-falvo","html_url":"https://github.com/sam-falvo","followers_url":"https://api.github.com/users/sam-falvo/followers","following_url":"https://api.github.com/users/sam-falvo/following{/other_user}","gists_url":"https://api.github.com/users/sam-falvo/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-falvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-falvo/subscriptions","organizations_url":"https://api.github.com/users/sam-falvo/orgs","repos_url":"https://api.github.com/users/sam-falvo/repos","events_url":"https://api.github.com/users/sam-falvo/events{/privacy}","received_events_url":"https://api.github.com/users/sam-falvo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T19:30:01Z","updated_at":"2016-05-19T19:30:01Z","closed_at":null,"body":"Inconsistent behavior of `error()` in luvit.  Is this expected behavior?  I would not expect this to be the case:\r\n\r\n\r\n```\r\n> function foo()\r\n>> error()\r\n>> end\r\n> foo()\r\nUncaught Error: [string \"bundle:deps/repl.lua\"]:183: [string \"bundle:deps/repl.lua\"]:102: attempt to concatenate a nil value\r\nstack traceback:\r\n\t[builtin#36]: at 0x010b6e0b30\r\n\t[string \"bundle:deps/repl.lua\"]:183: in function <[string \"bundle:deps/repl.lua\"]:173>\r\n\t[C]: in function 'run'\r\n\t[string \"bundle:init.lua\"]:52: in function <[string \"bundle:init.lua\"]:47>\r\n\t[C]: in function 'xpcall'\r\n\t[string \"bundle:init.lua\"]:47: in function 'fn'\r\n\t[string \"bundle:deps/require.lua\"]:300: in function <[string \"bundle:deps/require.lua\"]:265>\r\nMQD2ABG8WL:luvit sam5373$ function foo() begin\r\n-bash: syntax error near unexpected token `begin'\r\nMQD2ABG8WL:luvit sam5373$ luvit\r\nWelcome to the Luvit repl!\r\n> function foo()\r\n>> error(\"Hi there\")\r\n>> end\r\n> foo()\r\n[string \"REPL\"]:2: Hi there\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t[string \"REPL\"]:2: in function <[string \"REPL\"]:1>\r\n\t[C]: in function 'xpcall'\r\n\t[string \"bundle:deps/repl.lua\"]:93: in function 'evaluateLine'\r\n\t[string \"bundle:deps/repl.lua\"]:177: in function <[string \"bundle:deps/repl.lua\"]:175>\r\n>```"}}