{"action":"closed","issue":{"url":"https://api.github.com/repos/tststs/atom-ternjs/issues/214","repository_url":"https://api.github.com/repos/tststs/atom-ternjs","labels_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/214/comments","events_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/214/events","html_url":"https://github.com/tststs/atom-ternjs/issues/214","id":142578933,"number":214,"title":"Uncaught ReferenceError: fetch is not defined","user":{"login":"duanzheng","id":4760858,"avatar_url":"https://avatars.githubusercontent.com/u/4760858?v=3","gravatar_id":"","url":"https://api.github.com/users/duanzheng","html_url":"https://github.com/duanzheng","followers_url":"https://api.github.com/users/duanzheng/followers","following_url":"https://api.github.com/users/duanzheng/following{/other_user}","gists_url":"https://api.github.com/users/duanzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/duanzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duanzheng/subscriptions","organizations_url":"https://api.github.com/users/duanzheng/orgs","repos_url":"https://api.github.com/users/duanzheng/repos","events_url":"https://api.github.com/users/duanzheng/events{/privacy}","received_events_url":"https://api.github.com/users/duanzheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T08:18:55Z","updated_at":"2016-04-22T12:12:15Z","closed_at":"2016-04-22T12:12:15Z","body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 1.0.11\r\n**System**: Unknown Windows Version\r\n**Thrown From**: [atom-ternjs](https://github.com/tststs/atom-ternjs) package, v0.9.1\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught ReferenceError: fetch is not defined\r\n\r\n```\r\nAt /C:/Users/Administrator/.atom/packages/atom-ternjs/lib/atom-ternjs-client.coffee:188\r\n\r\nReferenceError: fetch is not defined\r\n  at Client.module.exports.Client.post (C:\\Users\\Administrator\\.atom\\packages\\atom-ternjs\\lib\\atom-ternjs-client.coffee:127:5)\r\n  at Client.module.exports.Client.update (C:\\Users\\Administrator\\.atom\\packages\\atom-ternjs\\lib\\atom-ternjs-client.coffee:66:6)\r\n  at Type.module.exports.Type.queryType (C:\\Users\\Administrator\\.atom\\packages\\atom-ternjs\\lib\\atom-ternjs-type.coffee:130:21)\r\n  at C:\\Users\\Administrator\\.atom\\packages\\atom-ternjs\\lib\\atom-ternjs-manager.coffee:170:17\r\n  at Emitter.module.exports.Emitter.emit (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\event-kit\\lib\\emitter.js:82:11)\r\n  at TextEditor.module.exports.TextEditor.cursorMoved (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\text-editor.js:1599:27)\r\n  at Selection.module.exports.Selection.markerDidChange (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\selection.js:909:21)\r\n  at C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\selection.js:43:24\r\n  at Emitter.module.exports.Emitter.emit (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\event-kit\\lib\\emitter.js:82:11)\r\n  at Marker.module.exports.Marker.notifyObservers (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\marker.js:270:27)\r\n  at C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\marker.js:65:26\r\n  at Emitter.module.exports.Emitter.emit (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\event-kit\\lib\\emitter.js:82:11)\r\n  at Marker.module.exports.Marker.emitChangeEvent (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\text-buffer\\lib\\marker.js:401:20)\r\n  at Marker.module.exports.Marker.update (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\text-buffer\\lib\\marker.js:346:12)\r\n  at Marker.module.exports.Marker.setHeadPosition (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\text-buffer\\lib\\marker.js:143:19)\r\n  at Marker.module.exports.Marker.setHeadBufferPosition (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\marker.js:175:32)\r\n  at Marker.module.exports.Marker.setHeadScreenPosition (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\marker.js:185:19)\r\n  at C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\cursor.js:84:31\r\n  at Cursor.module.exports.Cursor.changePosition (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\cursor.js:696:7)\r\n  at Cursor.module.exports.Cursor.setScreenPosition (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\cursor.js:82:19)\r\n  at Cursor.module.exports.Cursor.moveLeft (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\cursor.js:274:21)\r\n  at C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\text-editor.js:1429:23\r\n  at TextEditor.module.exports.TextEditor.moveCursors (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\text-editor.js:1593:9)\r\n  at TextEditor.module.exports.TextEditor.moveLeft (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\text-editor.js:1428:19)\r\n  at BracketMatcher.module.exports.BracketMatcher.insertText (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\bracket-matcher\\lib\\bracket-matcher.js:116:21)\r\n  at TextEditor.<anonymous> (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\bracket-matcher\\lib\\bracket-matcher.js:3:61)\r\n  at TextEditor.object.(anonymous function) [as insertText] (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\node_modules\\underscore-plus\\lib\\underscore-plus.js:76:20)\r\n  at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\text-editor-component.js:435:35)\r\n  at HTMLDivElement.<anonymous> (C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.0.11\\resources\\app.asar\\src\\text-editor-component.js:3:61)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -4:48.2.0 core:copy (atom-text-editor.editor.is-focused)\r\n     -4:39.9.0 grammar-selector:show (atom-text-editor.editor)\r\n  2x -4:33.9.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -4:27.5.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -4:24.7.0 core:save (atom-text-editor.editor.is-focused)\r\n  3x -0:26.3.0 core:copy (atom-text-editor.editor.is-focused)\r\n  2x -0:13.4.0 core:backspace (atom-text-editor.editor.is-focused)\r\n 10x -0:12 core:save (atom-text-editor.editor.is-focused)\r\n     -0:07.0 editor:newline (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {},\r\n  \"atom-ternjs\": {}\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-beautify, v0.28.26\r\natom-ternjs, v0.9.1\r\nfile-icons, v1.6.18\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n"}}