Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #193 from respeccing/fix_backtrace_on_Format
Browse files Browse the repository at this point in the history
fix: backtrace wasn't properly passed to [Format]
  • Loading branch information
alexcrichton committed Apr 3, 2016
2 parents e8a768b + 844da87 commit 88045c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions static/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@
}, button, "Compiling…", result);
}

function format(result, session, version, button) {
send("format.json", {code: session.getValue(), version: version}, function(object) {
function format(result, session, version, button, optimize, backtrace) {
send("format.json", {code: session.getValue(), version: version, optimize: optimize, backtrace: backtrace}, function(object) {
if ("error" in object) {
set_result(result, "<pre class=highlight><samp class=rustc-errors></samp></pre>");
result.firstChild.firstChild.innerHTML = formatCompilerOutput(object.error);
Expand Down Expand Up @@ -693,7 +693,8 @@
};

formatButton.onclick = function() {
format(result, session, getRadioValue("version"), formatButton);
format(result, session, getRadioValue("version"), formatButton,
getRadioValue("optimize"), backtrace.value);
};

shareButton.onclick = function() {
Expand Down

0 comments on commit 88045c4

Please sign in to comment.