(id)
| 66 | } |
| 67 | |
| 68 | getSnapshot(id) { |
| 69 | if (!(id in this.snapshots)) { |
| 70 | const err = new ERR_INVALID_STATE(`Snapshot '${id}' not found in ` + |
| 71 | `'${this.snapshotFile}.' ${kMissingSnapshotTip}`); |
| 72 | err.snapshot = id; |
| 73 | err.filename = this.snapshotFile; |
| 74 | throw err; |
| 75 | } |
| 76 | |
| 77 | return this.snapshots[id]; |
| 78 | } |
| 79 | |
| 80 | setSnapshot(id, value) { |
| 81 | this.snapshots[escapeSnapshotKey(id)] = value; |
no outgoing calls
no test coverage detected