vm/document : implement `getAllLines` and `getLines`