Language: JavaScript
Label: safe
CWE: CWE-1103 \u2014 Use of Platform-Dependent Third Party Components
The product relies on third-party components that do
					not provide equivalent functionality across all desirable
					platforms.

Code:
  function getModeConf(editor, field) {
    return editor.getModeAt(editor.getCursor()).config[field] || CodeMirror.resolveMode("text/x-sql")[field]
  }