Web Inspector: Write tests for ScriptSyntaxTree and fix bugs in the data structure