• neis's avatar
    [modules] Properly initialize declared variables. · f4dfb6fb
    neis authored
    Before evaluating a module, all variables declared at the top-level
    in _any_ of the modules in the dependency graph must be initialized.
    This is observable because a module A can access a variable imported
    from module B (e.g. a function) at a point when module B's body hasn't
    been evaluated yet.
    
    We achieve this by implementing modules internally as generators with
    two states (not initialized, initialized).
    
    R=adamk@chromium.org
    BUG=v8:1569
    
    Review-Url: https://codereview.chromium.org/2375793002
    Cr-Commit-Position: refs/heads/master@{#39871}
    f4dfb6fb
Name
Last commit
Last update
..
OWNERS Loading commit data...
duplicate-finder.cc Loading commit data...
duplicate-finder.h Loading commit data...
expression-classifier.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
parameter-initializer-rewriter.cc Loading commit data...
parameter-initializer-rewriter.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparse-data-format.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...