Exemplo n.º 1
0
        // ECMA-262 13.14 The throw statement

        public Node parseThrowStatement(Node node)
        {

            Node argument;

            expectKeyword("throw");

            if (hasLineTerminator)
            {
                throwError(Messages.NewlineAfterThrow);
            }

            argument = parseExpression();

            consumeSemicolon();

            return node.finishThrowStatement(argument);
        }