Skip to content

repl: Tab completion issue when useGlobal is set to false #7353

Description

@princejwesley

Version: v6.1.0 , (master: v7.0.0-pre)
Platform: Darwin Princes-MacBook-Pro.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
Subsystem: repl

When useGlobal is set to false, Tab complete function returns fewer results.

// With useGlobal: true
Desktop 🙈  node
> I<<TAB>>
Infinity

Int16Array  Int32Array  Int8Array   Intl

> In

// With useGlobal: false
Desktop 🙈  cat test.js
const repl = require('repl');
repl.start({useGlobal: false});

Desktop 🙈  node test.js
> In<<TAB>> // expand to 'Infinity'

Metadata

Metadata

Assignees

No one assigned

    Labels

    replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions