• littledan's avatar
    Reland of Make Intl install properties more like how other builtins do... · 88d7c59c
    littledan authored
    Reland of Make Intl install properties more like how other builtins do (patchset #1 id:1 of https://codereview.chromium.org/1733293003/ )
    
    This reland fixes a bug by pulling properties off the utils object, so
    that it can be garbage collected in nosnap builds.
    Original commit message:
    
    Intl has been somewhat of an oddball for how it integrates with V8.
    One aspect is that it largely didn't use utils to install itself
    into the snapshot, which led to some missing names, which new
    test262 tests check for, and duplicated code. This patch brings
    Intl a bit closer to how the rest of the builtins do things, though
    not entirely as it is currently structured to do unusual things,
    such as creating new constructors from JavaScript rather than C++.
    New test262 tests check for some of the names that are added in
    this patch.
    
    R=adamk
    CC=jshin
    BUG=v8:4778
    LOG=Y
    
    Review URL: https://codereview.chromium.org/1745483002
    
    Cr-Commit-Position: refs/heads/master@{#34337}
    88d7c59c
i18n.js 66.2 KB