I think the reason is that the prefix's value replaced the original property of the Object.
I have an idea to resolve it.
({}).hasOwnProperty.call(target, key);
// Is this a good idea ?
Atom throw error
[Enter steps to reproduce below:]
...
...
Atom Version: 1.8.0
System: Unknown Windows Version
Thrown From: snippets package, v1.0.2
Stack Trace
Uncaught TypeError: target.hasOwnProperty is not a function
At C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\scoped-property-store\lib\helpers.js:34
TypeError: target.hasOwnProperty is not a function
at deepDefaults (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\scoped-property-store\lib\helpers.js:34:20)
at C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\scoped-property-store\lib\scoped-property-store.js:71:21
at ScopedPropertyStore.module.exports.ScopedPropertyStore.withCaching (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\scoped-property-store\lib\scoped-property-store.js:220:39)
at ScopedPropertyStore.module.exports.ScopedPropertyStore.getPropertyValue (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\scoped-property-store\lib\scoped-property-store.js:51:19)
at Object.module.exports.parsedSnippetsForScopes (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\snippets\lib\snippets.js:355:59)
at SnippetsProvider.module.exports.SnippetsProvider.getSuggestions (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\autocomplete-snippets\lib\snippets-provider.js:38:43)
at C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:310:56
at Array.forEach (native)
at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:289:17)
at AutocompleteManager.getSuggestionsFromProviders (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:3:61)
at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:276:19)
at C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:3:61
My snippet:
Developer Tools throw error
C:\Users\gaox\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\scoped-property-store\lib\helpers.js :line34
I think the reason is that the prefix's value replaced the original property of the Object. I have an idea to resolve it.
Atom throw error
[Enter steps to reproduce below:]
Atom Version: 1.8.0 System: Unknown Windows Version Thrown From: snippets package, v1.0.2
Stack Trace
Uncaught TypeError: target.hasOwnProperty is not a function
Commands
Config
Installed Packages