{"action":"created","issue":{"url":"https://api.github.com/repos/graalvm/graaljs/issues/62","repository_url":"https://api.github.com/repos/graalvm/graaljs","labels_url":"https://api.github.com/repos/graalvm/graaljs/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/graalvm/graaljs/issues/62/comments","events_url":"https://api.github.com/repos/graalvm/graaljs/issues/62/events","html_url":"https://github.com/graalvm/graaljs/issues/62","id":365345327,"node_id":"MDU6SXNzdWUzNjUzNDUzMjc=","number":62,"title":"PolyglotException isIncompleteSource behavior is wrong","user":{"login":"pmlopes","id":849467,"node_id":"MDQ6VXNlcjg0OTQ2Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/849467?v=4","gravatar_id":"","url":"https://api.github.com/users/pmlopes","html_url":"https://github.com/pmlopes","followers_url":"https://api.github.com/users/pmlopes/followers","following_url":"https://api.github.com/users/pmlopes/following{/other_user}","gists_url":"https://api.github.com/users/pmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/pmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmlopes/subscriptions","organizations_url":"https://api.github.com/users/pmlopes/orgs","repos_url":"https://api.github.com/users/pmlopes/repos","events_url":"https://api.github.com/users/pmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/pmlopes/received_events","type":"User","site_admin":false},"labels":[{"id":904574450,"node_id":"MDU6TGFiZWw5MDQ1NzQ0NTA=","url":"https://api.github.com/repos/graalvm/graaljs/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":904574452,"node_id":"MDU6TGFiZWw5MDQ1NzQ0NTI=","url":"https://api.github.com/repos/graalvm/graaljs/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":{"login":"woess","id":6517543,"node_id":"MDQ6VXNlcjY1MTc1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/6517543?v=4","gravatar_id":"","url":"https://api.github.com/users/woess","html_url":"https://github.com/woess","followers_url":"https://api.github.com/users/woess/followers","following_url":"https://api.github.com/users/woess/following{/other_user}","gists_url":"https://api.github.com/users/woess/gists{/gist_id}","starred_url":"https://api.github.com/users/woess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woess/subscriptions","organizations_url":"https://api.github.com/users/woess/orgs","repos_url":"https://api.github.com/users/woess/repos","events_url":"https://api.github.com/users/woess/events{/privacy}","received_events_url":"https://api.github.com/users/woess/received_events","type":"User","site_admin":false},"assignees":[{"login":"woess","id":6517543,"node_id":"MDQ6VXNlcjY1MTc1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/6517543?v=4","gravatar_id":"","url":"https://api.github.com/users/woess","html_url":"https://github.com/woess","followers_url":"https://api.github.com/users/woess/followers","following_url":"https://api.github.com/users/woess/following{/other_user}","gists_url":"https://api.github.com/users/woess/gists{/gist_id}","starred_url":"https://api.github.com/users/woess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woess/subscriptions","organizations_url":"https://api.github.com/users/woess/orgs","repos_url":"https://api.github.com/users/woess/repos","events_url":"https://api.github.com/users/woess/events{/privacy}","received_events_url":"https://api.github.com/users/woess/received_events","type":"User","site_admin":false},{"login":"wirthi","id":9077053,"node_id":"MDQ6VXNlcjkwNzcwNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9077053?v=4","gravatar_id":"","url":"https://api.github.com/users/wirthi","html_url":"https://github.com/wirthi","followers_url":"https://api.github.com/users/wirthi/followers","following_url":"https://api.github.com/users/wirthi/following{/other_user}","gists_url":"https://api.github.com/users/wirthi/gists{/gist_id}","starred_url":"https://api.github.com/users/wirthi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirthi/subscriptions","organizations_url":"https://api.github.com/users/wirthi/orgs","repos_url":"https://api.github.com/users/wirthi/repos","events_url":"https://api.github.com/users/wirthi/events{/privacy}","received_events_url":"https://api.github.com/users/wirthi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-01T07:51:30Z","updated_at":"2018-10-01T13:39:00Z","closed_at":null,"author_association":"NONE","body":"Consider the following snippet:\r\n\r\n```java\r\ntry {\r\n  Source source = Source.newBuilder(\r\n    \"js\",\r\n    \"function incompleteFunction(arg) {\",\r\n    \"<shell>\").buildLiteral();\r\n  engine.eval(source);\r\n} catch (PolyglotException e) {\r\n  System.out.println(t.isSyntaxError() + \" \" + t.isIncompleteSource());\r\n}\r\n```\r\n\r\nFrom the javadocs in this case the `eval` should throw a `PolyglotException` and the flag `incompleteSource` should be true: http://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/PolyglotException.html#isIncompleteSource--\r\n"},"comment":{"url":"https://api.github.com/repos/graalvm/graaljs/issues/comments/425910969","html_url":"https://github.com/graalvm/graaljs/issues/62#issuecomment-425910969","issue_url":"https://api.github.com/repos/graalvm/graaljs/issues/62","id":425910969,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTkxMDk2OQ==","user":{"login":"wirthi","id":9077053,"node_id":"MDQ6VXNlcjkwNzcwNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9077053?v=4","gravatar_id":"","url":"https://api.github.com/users/wirthi","html_url":"https://github.com/wirthi","followers_url":"https://api.github.com/users/wirthi/followers","following_url":"https://api.github.com/users/wirthi/following{/other_user}","gists_url":"https://api.github.com/users/wirthi/gists{/gist_id}","starred_url":"https://api.github.com/users/wirthi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirthi/subscriptions","organizations_url":"https://api.github.com/users/wirthi/orgs","repos_url":"https://api.github.com/users/wirthi/repos","events_url":"https://api.github.com/users/wirthi/events{/privacy}","received_events_url":"https://api.github.com/users/wirthi/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T13:39:00Z","updated_at":"2018-10-01T13:39:00Z","author_association":"MEMBER","body":"Right, this is not yet implemented by JS. We'll try to bring that into the end-of-October release.\r\n\r\nMaybe the JavaDoc should clarify that this _could_ be implemented by languages, but that there might be languages that can't even do that (e.g., Python)."}}
{"actor":{"display_login":"wirthi"}}