mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Fix #2152: Cast opened paths to string
path.resolve() was throwing an exception if given path was not a string. When iterating through all given paths, each entry is casted by JS to most suitable type and paths in form of a number (i.e. '1234') were cast to Number, hence the bug.
This commit is contained in:
committed by
Stanislaw Kardach
parent
19c7086200
commit
b4cb92af99
@@ -42,7 +42,7 @@ start = ->
|
||||
app.removeListener 'open-url', addUrlToOpen
|
||||
|
||||
args.pathsToOpen = args.pathsToOpen.map (pathToOpen) ->
|
||||
path.resolve(args.executedFrom ? process.cwd(), "#{pathToOpen}")
|
||||
path.resolve(args.executedFrom ? process.cwd(), pathToOpen.toString())
|
||||
|
||||
require('coffee-script').register()
|
||||
if args.devMode
|
||||
|
||||
Reference in New Issue
Block a user