Fixed the failed unit tests in JSParserTest.