• Chunyang Dai's avatar
    X87: harmony-scoping: make assignment to 'const' a late error. · f89acb64
    Chunyang Dai authored
    port 6ac4de87
    
    original commit message:
      harmony-scoping: make assignment to 'const' a late error.
    
      Per TC39 Nov 2014 decision. This patch also changes behavior for "legacy const":
      assignments to sloppy const in strict mode is now also a type error. This fixes
      v8:2243 and also brings us in compliance with other engines re assignment to function
      names (see updated webkit test), but might have bigger implications. That change can
      easily be reverted by changing Variable::IsSignallingAssignmentToConst.
    
    BUG=
    R=dslomov@chromium.org, weiliang.lin@intel.com
    
    Review URL: https://codereview.chromium.org/763033002
    
    Patch from Chunyang Dai <chunyang.dai@intel.com>.
    
    Cr-Commit-Position: refs/heads/master@{#25532}
    f89acb64
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...