B2G/gecko/toolkit/devtools/debugger/tests/unit/head_dbg.js
// Convert an nsIScriptError 'aFlags' value into an appropriate string.
Convert an nsIScriptError 'aFlags' value into an appropriate string.
Convert an nsIScriptError ' aFlags ' value into an appropriate string .
function scriptErrorFlagsToKind(aFlags) {
  var kind;
  if (aFlags & Ci.nsIScriptError.warningFlag)
    kind = "warning";
  if (aFlags & Ci.nsIScriptError.exceptionFlag)
    kind = "exception";
  else
    kind = "error";
  if (aFlags & Ci.nsIScriptError.strictFlag)
    kind = "strict " + kind;
  return kind;
}
function scriptErrorFlagsToKind ( aFlags ) { var kind ; if ( aFlags & Ci . nsIScriptError . warningFlag ) kind = "warning" ; if ( aFlags & Ci . nsIScriptError . exceptionFlag ) kind = "exception" ; else kind = "error" ; if ( aFlags & Ci . nsIScriptError . strictFlag ) kind = "strict " + kind ; return kind ; }
Convert an nsIScriptError 'aFlags' value into an appropriate string.
Convert an nsIScriptError ' aFlags ' value into an appropriate string .