{"action":"created","issue":{"url":"https://api.github.com/repos/swc-project/swc/issues/50","repository_url":"https://api.github.com/repos/swc-project/swc","labels_url":"https://api.github.com/repos/swc-project/swc/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/swc-project/swc/issues/50/comments","events_url":"https://api.github.com/repos/swc-project/swc/issues/50/events","html_url":"https://github.com/swc-project/swc/issues/50","id":380639449,"node_id":"MDU6SXNzdWUzODA2Mzk0NDk=","number":50,"title":"Online repl","user":{"login":"kdy1","id":29931815,"node_id":"MDQ6VXNlcjI5OTMxODE1","avatar_url":"https://avatars1.githubusercontent.com/u/29931815?v=4","gravatar_id":"","url":"https://api.github.com/users/kdy1","html_url":"https://github.com/kdy1","followers_url":"https://api.github.com/users/kdy1/followers","following_url":"https://api.github.com/users/kdy1/following{/other_user}","gists_url":"https://api.github.com/users/kdy1/gists{/gist_id}","starred_url":"https://api.github.com/users/kdy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdy1/subscriptions","organizations_url":"https://api.github.com/users/kdy1/orgs","repos_url":"https://api.github.com/users/kdy1/repos","events_url":"https://api.github.com/users/kdy1/events{/privacy}","received_events_url":"https://api.github.com/users/kdy1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-14T10:46:16Z","updated_at":"2018-11-16T13:01:11Z","closed_at":null,"author_association":"COLLABORATOR","body":"ratel-rust have one, and it looks great"},"comment":{"url":"https://api.github.com/repos/swc-project/swc/issues/comments/439386023","html_url":"https://github.com/swc-project/swc/issues/50#issuecomment-439386023","issue_url":"https://api.github.com/repos/swc-project/swc/issues/50","id":439386023,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTM4NjAyMw==","user":{"login":"kdy1","id":29931815,"node_id":"MDQ6VXNlcjI5OTMxODE1","avatar_url":"https://avatars1.githubusercontent.com/u/29931815?v=4","gravatar_id":"","url":"https://api.github.com/users/kdy1","html_url":"https://github.com/kdy1","followers_url":"https://api.github.com/users/kdy1/followers","following_url":"https://api.github.com/users/kdy1/following{/other_user}","gists_url":"https://api.github.com/users/kdy1/gists{/gist_id}","starred_url":"https://api.github.com/users/kdy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdy1/subscriptions","organizations_url":"https://api.github.com/users/kdy1/orgs","repos_url":"https://api.github.com/users/kdy1/repos","events_url":"https://api.github.com/users/kdy1/events{/privacy}","received_events_url":"https://api.github.com/users/kdy1/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T13:01:11Z","updated_at":"2018-11-16T13:01:11Z","author_association":"COLLABORATOR","body":"It would be really hard as swc depends on rustc-ap crates.\r\nSome rustc-ap crates can't be compiled as wasm.\r\n\r\n```\r\ncargo build --release --target wasm32-unknown-emscripten\r\n   Compiling darling_core v0.7.0\r\n   Compiling pmutil v0.2.0\r\n   Compiling swc_atoms v0.1.0 (https://github.com/swc-project/swc.git#67daa279)\r\n   Compiling sourcemap v2.2.1\r\n   Compiling rustc-ap-rustc_data_structures v297.0.0\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:195:21\r\n    |\r\n195 |                     os::F_WRLCK\r\n    |                     ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:197:21\r\n    |\r\n197 |                     os::F_RDLCK\r\n    |                     ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:200:29\r\n    |\r\n200 |                 let flock = os::flock {\r\n    |                             ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:208:37\r\n    |\r\n208 |                 let cmd = if wait { os::F_SETLKW } else { os::F_SETLK };\r\n    |                                     ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:208:59\r\n    |\r\n208 |                 let cmd = if wait { os::F_SETLKW } else { os::F_SETLK };\r\n    |                                                           ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:224:29\r\n    |\r\n224 |                 let flock = os::flock {\r\n    |                             ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:229:29\r\n    |\r\n229 |                     l_type: os::F_UNLCK,\r\n    |                             ^^ Use of undeclared type or module `os`\r\n\r\nerror[E0433]: failed to resolve. Use of undeclared type or module `os`\r\n   --> /Users/kdy1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-297.0.0/flock.rs:233:42\r\n    |\r\n233 |                     libc::fcntl(self.fd, os::F_SETLK, &flock);\r\n    |                                          ^^ Use of undeclared type or module `os`\r\n\r\nerror: aborting due to 8 previous errors\r\n```"}}
{"actor":{"display_login":"kdy1"}}