[parser] Fix off-by-one in parameter count check

Upstream: https://chromium-review.googlesource.com/c/1326029

Bug: 160610106
Test: atest proxy_resolver_v8_unittest
Change-Id: I547b1a0cb88094ed79bf6ffe034df7f8834be4d1
(cherry picked from commit 089e85f552ec92402d9fcd19d110b0c7521c4601)
2 files changed
tree: 0f75c15b6d2f46b7cdc0ad37b1785fb732f684eb
  1. base/
  2. benchmarks/
  3. build_overrides/
  4. custom_deps/
  5. docs/
  6. gni/
  7. gnparser/
  8. gypfiles/
  9. include/
  10. infra/
  11. samples/
  12. src/
  13. testing/
  14. third_party/
  15. tools/
  16. .clang-format
  17. .gitignore
  18. .gn
  19. .landmines
  20. .ycm_extra_conf.py
  21. Android.base.bp
  22. Android.bp
  23. Android.platform.bp
  24. Android.sampler.bp
  25. Android.v8.bp
  26. Android.v8gen.bp
  27. AUTHORS
  28. BUILD.gn
  29. ChangeLog
  30. CODE_OF_CONDUCT.md
  31. codereview.settings
  32. DEPS
  33. genmakefiles.py
  34. LICENSE
  35. LICENSE.fdlibm
  36. LICENSE.strongtalk
  37. LICENSE.v8
  38. LICENSE.valgrind
  39. Makefile
  40. Makefile.android
  41. merge.py
  42. MODULE_LICENSE_BSD
  43. NOTICE
  44. OWNERS
  45. OWNERS.android
  46. PRESUBMIT.py
  47. README.md
  48. snapshot_toolchain.gni
  49. V8_MERGE_REVISION
  50. WATCHLISTS
README.md

V8 JavaScript Engine

V8 is Google's open source JavaScript engine.

V8 implements ECMAScript as specified in ECMA-262.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 can run standalone, or can be embedded into any C++ application.

V8 Project page: https://github.com/v8/v8/wiki

Getting the Code

Checkout depot tools, and run

    fetch v8

This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run

    git pull origin
    gclient sync

For fetching all branches, add the following into your remote configuration in .git/config:

    fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
    fetch = +refs/tags/*:refs/tags/*

Contributing

Please follow the instructions mentioned on the V8 wiki.