Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix fromObject when object is undefined #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 18, 2017

  1. Fix fromObject when object is undefined

    In [email protected] there is an unrecoverable error occurring when parameter `object` is undefined.
    
    ```
    Uncaught (in promise) TypeError: Cannot read property 'start' of undefined
        at Function.module.exports.Range.fromObject (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/range.js:33:37)
        at Function.module.exports.MarkerLayer.deserializeSnapshot (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/marker-layer.js:39:57)
        at History.module.exports.History.deserializeStack (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:427:60)
        at History.module.exports.History.deserialize (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:361:35)
        at /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:264:30
    ```
    bstream authored and Andreas Broström committed Sep 18, 2017
    Configuration menu
    Copy the full SHA
    ba9481a View commit details
    Browse the repository at this point in the history