Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repl: Mitigate vm #548 function redefinition issue #7794

Closed
wants to merge 34 commits into from

Commits on Jul 15, 2016

  1. win,msi: Added Italian translation

    As titled. Tested by @piccoloaiutante.
    
    PR-URL: nodejs#4647
    Refs: wixtoolset/wix3#366
    Reviewed-By: Rod Vagg <rod@vagg.org>
    Reviewed-By: Frederic Hemberger <mail@frederic-hemberger.de>
    mcollina authored and evanlucas committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    f25c7ce View commit details
    Browse the repository at this point in the history
  2. tools: increase lint coverage

    Extend linting to tools/license2rtf.js and any other JS that gets added
    to the `tools` directory by default.
    
    This incidentally simplifies lint invocation.
    
    PR-URL: nodejs#7647
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Trott authored and evanlucas committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    9db861b View commit details
    Browse the repository at this point in the history
  3. test,doc: clarify buf.indexOf(num) input range

    Hopefully clarify the behaviour of `buffer.indexOf()` and
    `buffer.includes()` for numbers in that they will be
    truncated to uint8s.
    
    Add tests for that behaviour.
    
    Fixes: nodejs#7591
    PR-URL: nodejs#7611
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax authored and evanlucas committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    25b3ff4 View commit details
    Browse the repository at this point in the history
  4. doc: fix typo in the CHANGELOG_V6

    compliment -> complement
    
    PR-URL: nodejs#7568
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and evanlucas committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    45a8fce View commit details
    Browse the repository at this point in the history
  5. tools: consistent .eslintrc formatting

    All quotes in .eslintrc were unnecessary and inconsistently placed
    across the file. Additionally, format the globals to be consistent
    with the style of whitespace and sorted them alphabetically.
    
    PR-URL: nodejs#7691
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    silverwind authored and evanlucas committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    8bbb3eb View commit details
    Browse the repository at this point in the history
  6. win,msi: add zh-CN translations for the installer

    PR-URL: nodejs#2569
    Reviewed-By: Jackson Tian <shvyo1987@gmail.com>
    Reviewed-By: Wexpo Lyu <laosb@lns.unihubs.com>
    Reviewed-By: Yiyu He <heyiyu.deadhorse@gmail.com>
    Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
    pmq20 authored and evanlucas committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    e1e477e View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2016

  1. inspector: Unify event queues

    Current implementation tracks connected/disconnected status separately
    which potentially introduces race condition.
    This change introduces notion of session IDs and also posts
    connect/disconnect events into the same queue as the messages. This way
    Node knows what session given response belongs to and can discard
    messages if the frontend for that session had disconnected.
    
    This also fixes an issue when frontend was unable to attach to V8
    instance that was running infinite loop.
    
    PR-URL: nodejs#7271
    Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
    Eugene Ostroukhov authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    43b5bf4 View commit details
    Browse the repository at this point in the history
  2. test: add common.rootDir

    A few of the child process tests can be simplified by computing
    the OS specific root directory in common and then accessing that
    value.
    
    PR-URL: nodejs#7685
    Reviewed-By: Roman Reiss <me@silverwind.io>
    cjihrig authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    ccd4983 View commit details
    Browse the repository at this point in the history
  3. fs: rename event to eventType in fs.watch listener

    The name 'event' for the argument of the listener in
    fs.watch was confusing considering FSWatcher also had
    events. This changes the name of the argument to
    eventType.
    
    Fixes: nodejs#7504
    PR-URL: nodejs#7506
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    claudiorodriguez authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    f003465 View commit details
    Browse the repository at this point in the history
  4. test: cleanup IIFE tests

    A number of test files use IIFEs to separate distinct tests from
    each other in the same file. The project has been moving toward
    using block scopes and let/const in favor of IIFEs. This commit
    moves IIFE tests to block scopes. Some additional cleanup such
    as use of strictEqual() and common.mustCall() is also included.
    
    PR-URL: nodejs#7694
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    cjihrig authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    1af8c03 View commit details
    Browse the repository at this point in the history
  5. test: improve error message in test-tick-processor

    Provide additional information about values that indicate test failed.
    
    PR-URL: nodejs#7693
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    Trott authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    d224b47 View commit details
    Browse the repository at this point in the history
  6. doc: removed old git conflict markers from fs.md

    "doc/api/fs.md" file had some conflict markers like "<<<<<<< HEAD"
    that are visible at the bottom of https://nodejs.org/api/fs.html
    
    PR-URL: nodejs#7590
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    jaimehrubiks authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    f0d9610 View commit details
    Browse the repository at this point in the history
  7. buffer: fix creating from zero-length ArrayBuffer

    Fixes regression where creating a new Buffer from an
    empty ArrayBuffer would fail.
    
    Ref: nodejs@85ab4a5
    PR-URL: nodejs#7176
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Ron Korving <ron@ronkorving.nl>
    RReverser authored and evanlucas committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    3b767b8 View commit details
    Browse the repository at this point in the history
  8. deps: back-port d721121 from v8 upstream

    Original commit message:
    
        Quit creating array literal boilerplates from Crankshaft.
    
        It's such a corner case.
    
        BUG=
    
        Review URL: https://codereview.chromium.org/1865013002
    
        Cr-Commit-Position: refs/heads/master@{nodejs#35346}
    
    Fixes: nodejs#7454
    PR-URL: nodejs#7633
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    bnoordhuis committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    c10ade9 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2016

  1. cluster: remove bind() and self

    This commit removes the use of self and bind() from the cluster
    module in favor of arrow functions.
    
    PR-URL: nodejs#7710
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
    cjihrig authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    a855b30 View commit details
    Browse the repository at this point in the history
  2. doc: fix typo in stream doc

    Fix small typo in Buffering section of stream doc.
    PR-URL: nodejs#7738
    Reviewed-By: Brian White <mscdex@mscdex.net>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Kevin Donahue authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    46b9ef6 View commit details
    Browse the repository at this point in the history
  3. doc: Warn against uncaughtException dependency.

    State in the documentation that `uncaughtException` is not a reliable
    way to restart a crashed application, and clarify that an application
    may crash in ways that do not trigger this event.
    
    Use a documented synchronous function in example code.
    
    Fixes: nodejs#6223
    
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    PR-URL: nodejs#6378
    lance authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    c726ffb View commit details
    Browse the repository at this point in the history
  4. timers: fix processing of nested timers

    Whenever a timer is scheduled within another timer, there are a few
    known issues that we are fixing:
    
    * Whenever the timer being scheduled has the same timeout value as the
    outer timer, the newly created timer can fire on the same tick of the
    event loop instead of during the next tick of the event loop
    * Whenever a timer is added in another timer's callback, its underlying
    timer handle will be started with a timeout that is actually incorrect
    
    This commit consists of
    nodejs/node-v0.x-archive#17203 and
    nodejs/node-v0.x-archive#25763.
    
    Fixes: nodejs/node-v0.x-archive#9333
    Fixes: nodejs/node-v0.x-archive#15447
    Fixes: nodejs/node-v0.x-archive#25607
    Fixes: nodejs#5426
    PR-URL: nodejs#3063
    whitlockjc authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    9d9bd3c View commit details
    Browse the repository at this point in the history
  5. doc: fix inconsistencies in code style

    Adds missing semicolons, removes extra white space, and properly indents
    various code snippets in the documentation.
    
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
    PR-URL: nodejs#7745
    saadq authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    669af6e View commit details
    Browse the repository at this point in the history
  6. test: s/assert.fail/common.fail as appropriate

    Many tests use assert.fail(null, null, msg) where it would be
    simpler to use common.fail(msg). This is largely because
    common.fail() is fairly new. This commit makes the replacement
    when applicable.
    
    PR-URL: nodejs#7735
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    cjihrig authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    17591c3 View commit details
    Browse the repository at this point in the history
  7. deps: no /safeseh for ml64.exe

    `ml64.exe` doesn't support `/safeseh` option. Do not attempt to use it
    if `target_arch=="x64"`.
    
    See: https://msdn.microsoft.com/en-us/library/s0ksfwcf.aspx
    PR-URL: nodejs#7759
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
    Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
    indutny authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    3bd40ff View commit details
    Browse the repository at this point in the history
  8. util: inspect boxed symbols like other primitives

    Inspect boxed symbol objects in the same way other boxed primitives
    are inspected.
    
    Fixes: nodejs#7639
    PR-URL: nodejs#7641
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    addaleax authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    60c459c View commit details
    Browse the repository at this point in the history
  9. buffer: optimize hex_decode

    PR-URL: nodejs#7602
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    chjj authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    ba6ab7c View commit details
    Browse the repository at this point in the history
  10. test: fix flaky test-http-server-consumed-timeout

    Using identical timeout values appears to have eliminated the flakiness
    in the test.
    
    Fixes: nodejs#7643
    PR-URL: nodejs#7717
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Trott authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    aa045cd View commit details
    Browse the repository at this point in the history
  11. doc: add added: information for stream

    Ref: nodejs#6578
    PR-URL: nodejs#7287
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
    italoacasas authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    f7d3af6 View commit details
    Browse the repository at this point in the history
  12. src: fix handle leak in Buffer::New()

    Fix handle leaks in Buffer::New() and Buffer::Copy() by creating the
    handle scope before looking up the env with Environment::GetCurrent().
    
    Environment::GetCurrent() calls v8::Isolate::GetCurrentContext(), which
    creates a handle in the current scope, i.e., the scope created by the
    caller of Buffer::New() or Buffer::Copy().
    
    PR-URL: nodejs#7711
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    bnoordhuis authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    06bfb9e View commit details
    Browse the repository at this point in the history
  13. src: fix handle leak in BuildStatsObject()

    Create a handle scope before performing a check that creates a handle,
    otherwise the handle is leaked into the handle scope of the caller.
    
    PR-URL: nodejs#7711
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    bnoordhuis authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    978362d View commit details
    Browse the repository at this point in the history
  14. src: fix handle leak in UDPWrap::Instantiate()

    Create a handle scope before performing a check that creates a handle,
    otherwise the handle is leaked into the handle scope of the caller.
    
    PR-URL: nodejs#7711
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    bnoordhuis authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    e46efd9 View commit details
    Browse the repository at this point in the history
  15. src: remove unnecessary HandleScopes

    API function callbacks run inside an implicit HandleScope.  We don't
    need to explicitly create one and in fact introduce some unnecessary
    overhead when we do.
    
    PR-URL: nodejs#7711
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    bnoordhuis authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    61d88d9 View commit details
    Browse the repository at this point in the history
  16. doc: correct sample output of buf.compare

    Comparing the buffers `ABC` and `ABCD` returns `-1` not `1`.
    
    PR-URL: nodejs#7777
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    khalsah authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    62a3ff2 View commit details
    Browse the repository at this point in the history
  17. test: avoid usage of mixed IPV6 addresses

    The test case fails in AIX due to the mixed-use of unspecified
    and loopback addresses. This is not a problem in most platforms
    but fails in AIX. (In Windows too, but does not manifest as the
    test is omitted in Windows for a different reason).
    
    There exists no documented evidence which supports the mixed use
    of unspecified and loopback addresses.
    
    While AIX strictly follows the IPV6 specification with respect to
    unspecified address ('::') and loopback address ('::1'), the test
    case latches on to the behavior exhibited by other platforms,
    and hence it fails in AIX.
    
    The proposed fix is to make it work in all platforms including
    AIX by using the loopback address for the client to connect,
    as that is the address at which the server listens.
    
    Fixes: nodejs#7563
    PR-URL: nodejs#7702
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gireeshpunathil authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    9d59b7d View commit details
    Browse the repository at this point in the history
  18. doc: update CTC governance information

    Update some outdated material. Provide some minor fixes. Wrap to 80
    characters.
    
    PR-URL: nodejs#7719
    Reviewed-By: Rod Vagg <rod@vagg.org>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Julien Gilli <jgilli@nodejs.org>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    Trott authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    059a721 View commit details
    Browse the repository at this point in the history
  19. deps: v8_inspector no longer depends on wtf

    Remove wtf files as v8_inspector no longer needs them.
    
    Ref: nodejs#7123
    
    PR-URL: nodejs#7751
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
    Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
    ofrobots authored and evanlucas committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    f3182f6 View commit details
    Browse the repository at this point in the history
  20. repl: Mitigate vm nodejs#548 function redefinition issue

    ```js
    node 🙈 ₹ git:(upstream ⚡ repl-tmp-548) ./node
    > function name() { return "node"; };
    undefined
    > name()
    'node'
    > function name() { return "nodejs"; };
    undefined
    > name()
    'nodejs'
    >
    ```
    princejwesley committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    dedf6c4 View commit details
    Browse the repository at this point in the history