{"id":16014872,"url":"https://github.com/thheller/closure-remove-unused-code-issue","last_synced_at":"2026-01-19T07:01:49.412Z","repository":{"id":140236638,"uuid":"121941390","full_name":"thheller/closure-remove-unused-code-issue","owner":"thheller","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-18T10:28:37.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T02:43:12.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thheller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-18T10:28:02.000Z","updated_at":"2018-02-18T10:28:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b67f54c6-9c81-4dd4-9ced-03a77095fa1c","html_url":"https://github.com/thheller/closure-remove-unused-code-issue","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"700891abb3577c438966ab0e4faa8f7cd64dccb9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thheller/closure-remove-unused-code-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fclosure-remove-unused-code-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fclosure-remove-unused-code-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fclosure-remove-unused-code-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fclosure-remove-unused-code-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thheller","download_url":"https://codeload.github.com/thheller/closure-remove-unused-code-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fclosure-remove-unused-code-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T15:05:23.848Z","updated_at":"2026-01-19T07:01:49.375Z","avatar_url":"https://github.com/thheller.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n\r\n\r\nDownload necessary things\r\n\r\n```bash\r\ncurl -O https://unpkg.com/quill@1.3.5/dist/quill.js\r\ncurl -O http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20180204/closure-compiler-v20180204.jar\r\ncurl -O http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20180101/closure-compiler-v20180101.jar\r\n```\r\n\r\nCompile with bad version\r\n\r\n```\r\njava -jar closure-compiler-v20180204.jar --js quill.js -O SIMPLE --js_output_file compiled.js\r\n```\r\n\r\nOpen Browser\r\n\r\n```\r\nopen public/index.html\r\n```\r\n\r\nFails with Error (See Browser Console)\r\n\r\n```\r\nUncaught TypeError: Cannot call a class as a function\r\n    at e.a (compiled.js:102)\r\n    at new e (compiled.js:229)\r\n    at a.value (compiled.js:218)\r\n    at new c (compiled.js:76)\r\n    at index.html:4\r\n```\r\n\r\nCompile with good version\r\n\r\n```\r\njava -jar closure-compiler-v20180101.jar --js quill.js -O SIMPLE --js_output_file compiled.js\r\n```\r\n\r\nReload browser and Error is gone.\r\n\r\nRunning `git bisect` traced down this issue to this commit:\r\n\r\n```\r\n6b807c063d42a463e3c32e5911c695a0976e2b67 is the first bad commit\r\ncommit 6b807c063d42a463e3c32e5911c695a0976e2b67\r\nAuthor: bradfordcsmith \u003cbradfordcsmith@google.com\u003e\r\nDate:   Wed Jan 17 14:24:56 2018 -0800\r\n\r\n    RemoveUnusedCode: remove `x instanceof UnusedName`\r\n\r\n    -------------\r\n    Created by MOE: https://github.com/google/moe\r\n    MOE_MIGRATED_REVID=182269894\r\n\r\n:040000 040000 d44ac3cdd98601b33b21192fada4fc0957a18efc ac0a44df4d8bee7350d32e3bbe4933a15f9d5151 M      src\r\n:040000 040000 a6510a4aa77bde61508ea6c33fbdf6601f8b61e0 feb62fb9bd9b4cd4cea6f3b32ee552b293971c70 M      test\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthheller%2Fclosure-remove-unused-code-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthheller%2Fclosure-remove-unused-code-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthheller%2Fclosure-remove-unused-code-issue/lists"}