Bug 1291358 - Part 2: New console frontend: Add support for console.trace();r=linclark

MozReview-Commit-ID: G7Ghf07BiSl
This commit is contained in:
Nicolas Chevobbe
2016-08-18 16:04:32 -07:00
parent e786c4fb8d
commit 60bf03e66d
10 changed files with 61 additions and 19 deletions

View File

@@ -16,8 +16,15 @@ const FilterBar = React.createFactory(require("devtools/client/webconsole/new-co
const store = configureStore();
function NewConsoleOutputWrapper(parentNode, jsterm) {
let childComponent = ConsoleOutput({ jsterm });
function NewConsoleOutputWrapper(parentNode, jsterm, toolbox) {
let childComponent = ConsoleOutput({
jsterm,
onViewSourceInDebugger: frame => toolbox.viewSourceInDebugger.call(
toolbox,
frame.url,
frame.line
)
});
let filterBar = FilterBar({});
let provider = React.createElement(
Provider,