Skip to main content

source_arrow

Function source_arrow 

Source
pub fn source_arrow(h: &JsHost, pos: u32) -> Option<String>
Expand description

node’s source arrow for position pos (GetErrorSource, src/node_errors.cc): file:line, the source line, and a caret line that copies the line’s tabs and puts one ^ under the column — V8 reports a raise as the one-character range [pos, pos + 1).