• littledan's avatar
    Test for var declarations in eval which conflict with let · d515e513
    littledan authored
    Previously, name conflicts between var and let declarations were only
    made into exceptions if they were visible at parse-time. This patch adds
    runtime checks so that sloppy-mode direct eval can't introduce conflicting
    var declarations. The change is implemented by traversing the scope chain
    when a direct eval introduces a var declaration to look for conflicting
    let declarations, up to the function boundary.
    
    BUG=v8:4454
    R=adamk
    LOG=Y
    
    Review URL: https://codereview.chromium.org/1382513003
    
    Cr-Commit-Position: refs/heads/master@{#31211}
    d515e513
Name
Last commit
Last update
..
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-i18n.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-json.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-liveedit.cc Loading commit data...
runtime-maths.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-observe.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-simd.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-uri.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...