title: Shader compile errors
body: <p>I am trying to compile a "garbage" shader, feeding in some garbage code to WebGL (see <a href="http://jsfiddle.net/yjGV5/" rel="noreferrer">here</a> for a fiddle):</p>
  
  <pre><code>gl = $('canvas')[0].getContext('experimental-webgl');
  
  source = 'garbage12398sv;aa[]|\[12';
  
  shader = gl.createShader(gl.FRAGMENT_SHADER);
  gl.shaderSource(shader, source);
  gl.compileShader(shader);
  
  console.log(gl.getError() === gl.NO_ERROR);
  </code></pre>
  
  <p>Surprisingly, <code>gl.getError() === gl.NO_ERROR</code> is <code>true</code> despite asking WebGL to compile some garbage.</p>
  
  <p>Why doesn't <code>getError</code> flag an error? How can I get error information regarding the compilation status of my shaders?</p>