Bug 1308510 - Disable highlight for non-experimental WebAssembly format. r?jlongster draft
authorYury Delendik <ydelendik@mozilla.com>
Thu, 13 Oct 2016 14:30:33 -0500
changeset 424917 377d60dcf09bc18fa0d5652fa53477b2346a13f9
parent 424916 dcca7cce521fd7eaecc63d9b53b8a906c19f39a7
child 533794 8f7381afef2e1b24757431b18560c49e14095f4b
push id32288
push userydelendik@mozilla.com
push dateThu, 13 Oct 2016 19:47:11 +0000
reviewersjlongster
bugs1308510
milestone52.0a1
Bug 1308510 - Disable highlight for non-experimental WebAssembly format. r?jlongster MozReview-Commit-ID: 9LazMkxMQB6
devtools/client/debugger/debugger-view.js
--- a/devtools/client/debugger/debugger-view.js
+++ b/devtools/client/debugger/debugger-view.js
@@ -447,17 +447,17 @@ var DebuggerView = {
    */
   _setEditorMode: function (aUrl, aContentType = "", aTextContent = "") {
     // Use JS mode for files with .js and .jsm extensions.
     if (SourceUtils.isJavaScript(aUrl, aContentType)) {
       return void this.editor.setMode(Editor.modes.js);
     }
 
     if (aContentType === "text/wasm") {
-      return void this.editor.setMode(Editor.modes.wasm);
+      return void this.editor.setMode(Editor.modes.text);
     }
 
     // Use HTML mode for files in which the first non whitespace character is
     // &lt;, regardless of extension.
     if (aTextContent.match(/^\s*</)) {
       return void this.editor.setMode(Editor.modes.html);
     }