From 58af55055c1ec9461a0bf7b9ea7a6ec53b6b4758 Mon Sep 17 00:00:00 2001 From: Jeff Walden Date: Wed, 24 Aug 2016 22:16:34 -0700 Subject: [PATCH] Bug 1288459 - Convert a few existing calls to Parser::statement over to Parser::statementListItem (which still has identical functionality at present), before the two functions' behavior is made to differ. r=arai --HG-- extra : rebase_source : 7eac11fa962864ded95cda2ee9a1069b90f12ae4 --- js/src/frontend/Parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 124fda829a45..109e4d4d52fd 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -3557,7 +3557,7 @@ Parser::statementList(YieldHandling yieldHandling) return null(); statementBegin = pos.begin; } - Node next = statement(yieldHandling, canHaveDirectives); + Node next = statementListItem(yieldHandling, canHaveDirectives); if (!next) { if (tokenStream.isEOF()) isUnexpectedEOF_ = true; @@ -5405,7 +5405,7 @@ Parser::switchStatement(YieldHandling yieldHandling) return null(); statementBegin = pos.begin; } - Node stmt = statement(yieldHandling); + Node stmt = statementListItem(yieldHandling); if (!stmt) return null(); if (!warnedAboutStatementsAfterReturn) {