Bug 1315242 - Part 2: Display line number and column number in error message for console input. r=bgrins

This commit is contained in:
Tooru Fujisawa
2016-11-11 01:06:26 +09:00
parent 2311cdd4a3
commit 5e6a8b0923
5 changed files with 29 additions and 17 deletions

View File

@@ -130,13 +130,12 @@ const Message = createClass({
const repeat = this.props.repeat ? MessageRepeat({repeat: this.props.repeat}) : null;
// Configure the location.
const shouldRenderFrame = frame && frame.source !== "debugger eval code";
const location = dom.span({ className: "message-location devtools-monospace" },
shouldRenderFrame ? FrameView({
frame ? FrameView({
frame,
onClick: serviceContainer.onViewSourceInDebugger,
onClick: serviceContainer ? serviceContainer.onViewSourceInDebugger : undefined,
showEmptyPathAsHost: true,
sourceMapService: serviceContainer.sourceMapService
sourceMapService: serviceContainer ? serviceContainer.sourceMapService : undefined
}) : null
);