Bug 1262208: Generalize the disabled compilation mode message for asm.js; r?luke draft
authorBenjamin Bouvier <benj@benj.me>
Thu, 07 Apr 2016 13:56:24 +0200
changeset 348383 cfd30cc9f8e9518551c5ce461a4d8822e8ad8d67
parent 348382 5c95902c9b8f8b9e1645f45a49961892941bbd15
child 517850 040a3e15d3921e60b1e50d2270258721f1ede1b6
push id14826
push userbenj@benj.me
push dateThu, 07 Apr 2016 11:56:36 +0000
reviewersluke
bugs1262208
milestone48.0a1
Bug 1262208: Generalize the disabled compilation mode message for asm.js; r?luke MozReview-Commit-ID: ERdr7xy6DeO
js/src/asmjs/AsmJS.cpp
--- a/js/src/asmjs/AsmJS.cpp
+++ b/js/src/asmjs/AsmJS.cpp
@@ -8157,17 +8157,17 @@ Warn(AsmJSParser& parser, int errorNumbe
 static bool
 EstablishPreconditions(ExclusiveContext* cx, AsmJSParser& parser)
 {
     if (!HasCompilerSupport(cx))
         return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by lack of compiler support");
 
     switch (parser.options().asmJSOption) {
       case AsmJSOption::Disabled:
-        return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by javascript.options.asmjs in about:config");
+        return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by 'asmjs' runtime option");
       case AsmJSOption::DisabledByDebugger:
         return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by debugger");
       case AsmJSOption::Enabled:
         break;
     }
 
     if (parser.pc->isGenerator())
         return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by generator context");