mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
... Right. Joanna can't handle spread properties in objects
This commit is contained in:
@@ -1275,7 +1275,7 @@ class AtomApplication extends EventEmitter {
|
||||
const normalizedPath = path.normalize(path.resolve(executedFrom, fs.normalize(pathToOpen)))
|
||||
if (!url.parse(pathToOpen).protocol) pathToOpen = normalizedPath
|
||||
|
||||
return {pathToOpen, initialLine, initialColumn, ...extra}
|
||||
return Object.assign({pathToOpen, initialLine, initialColumn}, extra)
|
||||
}
|
||||
|
||||
// Opens a native dialog to prompt the user for a path.
|
||||
|
||||
Reference in New Issue
Block a user