I discussed this with the people in the Selendroid project. They say that the comment issue has to do with the way Android executes `eval`. What happens is the payload has all of it's newlines replaced with `\n` and so `//` obviously will not terminate correctly without real newlines. The payload in Selendroid from `protractor.js`:

```json
{"args":[[]],"script":"return (function () {\n    // Continue to bootstrap Angular.\n    angular.resumeBootstrap(arguments[0]);\n  }).apply(null, arguments);"}
```