{"action":"created","issue":{"url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/10","repository_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS","labels_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/10/comments","events_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/10/events","html_url":"https://github.com/gonzus/JavaScript-Duktape-XS/issues/10","id":345403807,"node_id":"MDU6SXNzdWUzNDU0MDM4MDc=","number":10,"title":"A function passed as value to a perl sub is converted to hashref.","user":{"login":"cafe01","id":675057,"node_id":"MDQ6VXNlcjY3NTA1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/675057?v=4","gravatar_id":"","url":"https://api.github.com/users/cafe01","html_url":"https://github.com/cafe01","followers_url":"https://api.github.com/users/cafe01/followers","following_url":"https://api.github.com/users/cafe01/following{/other_user}","gists_url":"https://api.github.com/users/cafe01/gists{/gist_id}","starred_url":"https://api.github.com/users/cafe01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cafe01/subscriptions","organizations_url":"https://api.github.com/users/cafe01/orgs","repos_url":"https://api.github.com/users/cafe01/repos","events_url":"https://api.github.com/users/cafe01/events{/privacy}","received_events_url":"https://api.github.com/users/cafe01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-28T01:01:59Z","updated_at":"2018-08-09T15:39:14Z","closed_at":null,"author_association":"NONE","body":"Hi there, first of all, thanks for the great work!\r\n\r\nCan you confirm this is a bug or am I missing something?\r\n\r\n```\r\nuse Test::More;\r\nuse JavaScript::Duktape::XS;\r\n\r\nmy $js = JavaScript::Duktape::XS->new;\r\n\r\n$js->set('doSomething', sub {\r\n    my @args = @_;\r\n    is scalar(@args), 6;\r\n    is $args[0], 32;\r\n    is $args[1], 'foo';\r\n    is $args[2], 1;\r\n    \r\n    isa_ok $args[3], 'ARRAY';\r\n    is_deeply $args[3], [3, 4];\r\n    \r\n    isa_ok $args[4], 'HASH';\r\n    is_deeply $args[4], { foo => 'bar' };\r\n\r\n    isa_ok $args[5], 'CODE';\r\n});\r\n\r\n$js->eval('doSomething(32, \"foo\", true, [3, 4], { foo: \"bar\" }, function() {})');\r\n\r\ndone_testing;\r\n```"},"comment":{"url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/comments/411801844","html_url":"https://github.com/gonzus/JavaScript-Duktape-XS/issues/10#issuecomment-411801844","issue_url":"https://api.github.com/repos/gonzus/JavaScript-Duktape-XS/issues/10","id":411801844,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTgwMTg0NA==","user":{"login":"gonzus","id":208546,"node_id":"MDQ6VXNlcjIwODU0Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/208546?v=4","gravatar_id":"","url":"https://api.github.com/users/gonzus","html_url":"https://github.com/gonzus","followers_url":"https://api.github.com/users/gonzus/followers","following_url":"https://api.github.com/users/gonzus/following{/other_user}","gists_url":"https://api.github.com/users/gonzus/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzus/subscriptions","organizations_url":"https://api.github.com/users/gonzus/orgs","repos_url":"https://api.github.com/users/gonzus/repos","events_url":"https://api.github.com/users/gonzus/events{/privacy}","received_events_url":"https://api.github.com/users/gonzus/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T15:39:14Z","updated_at":"2018-08-09T15:39:14Z","author_association":"OWNER","body":"Probably correct. Or, you could just consider installing your built V8 libraries (including libicu) to a \"standard place\"."}}
{"actor":{"display_login":"gonzus"}}