(path)
| 121 | } |
| 122 | |
| 123 | isAbsolute (path) { |
| 124 | if (process.platform === 'win32') { |
| 125 | // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 |
| 126 | let splitDeviceRe = /^([a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?([\\/])?([\s\S]*?)$/ |
| 127 | let result = splitDeviceRe.exec(path) |
| 128 | let device = result[1] || '' |
| 129 | let isUnc = Boolean(device && device.charAt(1) !== ':') |
| 130 | // UNC paths are always absolute |
| 131 | return Boolean(result[2] || isUnc) |
| 132 | } else { |
| 133 | return path.charAt(0) === '/' |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | parse (stack) { |
| 138 | if (!stack || stack.length === 0) return false |
no outgoing calls
no test coverage detected