{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/rhino/issues/276","repository_url":"https://api.github.com/repos/mozilla/rhino","labels_url":"https://api.github.com/repos/mozilla/rhino/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rhino/issues/276/comments","events_url":"https://api.github.com/repos/mozilla/rhino/issues/276/events","html_url":"https://github.com/mozilla/rhino/issues/276","id":148262741,"number":276,"title":"How to write to a object implemented in java in javascript?","user":{"login":"faywong","id":1934627,"avatar_url":"https://avatars.githubusercontent.com/u/1934627?v=3","gravatar_id":"","url":"https://api.github.com/users/faywong","html_url":"https://github.com/faywong","followers_url":"https://api.github.com/users/faywong/followers","following_url":"https://api.github.com/users/faywong/following{/other_user}","gists_url":"https://api.github.com/users/faywong/gists{/gist_id}","starred_url":"https://api.github.com/users/faywong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faywong/subscriptions","organizations_url":"https://api.github.com/users/faywong/orgs","repos_url":"https://api.github.com/users/faywong/repos","events_url":"https://api.github.com/users/faywong/events{/privacy}","received_events_url":"https://api.github.com/users/faywong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T06:20:43Z","updated_at":"2016-04-14T06:20:43Z","closed_at":null,"body":"I implemented a document object in java and bind it to name \"document\" in the global scope.\r\n\r\nWhen i write it in javascript like this:\r\n```javascript\r\ndocument.someobj = 'some value';\r\n```\r\nThe rhino engine report a error as it trap into java and can't find the 'someobj' accessor in it.\r\n\r\n**So how can i achieve writing to a object implemented in java in javascript?**\r\n\r\nAny advice is appreciated."}}