michael@0: // |reftest| skip-if(!xulRuntime.shell) michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: Dave Herman michael@0: */ michael@0: michael@0: // Bug 696109 - fixed a precedence bug in with/while nodes michael@0: try { michael@0: Reflect.parse("with({foo})bar"); michael@0: throw new Error("supposed to be a syntax error"); michael@0: } catch (e if e instanceof SyntaxError) { } michael@0: try { michael@0: Reflect.parse("while({foo})bar"); michael@0: throw new Error("supposed to be a syntax error"); michael@0: } catch (e if e instanceof SyntaxError) { } michael@0: michael@0: reportCompare(true, true);