Pasted text is truncated in v27 REPL

未關閉
#67,423 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
52/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
javascript, node.js

研究方向

Start by investigating the Node.js REPL's paste handling when syntax highlighting is enabled; the issue does not identify a file or test. Reproduce by pasting the supplied multiline object and compare the result with highlighting enabled and disabled. Done means the full pasted object appears in the REPL with highlighting enabled.

由索引模型根據 Issue 內容生成。

描述

Version

v27.0.0

Platform
Darwin KXT44HPV2P 25.6.0 Darwin Kernel Version 25.6.0: Tue Aug 18 17:48:46 PDT 2026; root:xnu-12377.161.15.700.19~2/RELEASE_ARM64_T6041 arm64
Subsystem

repl

What steps will reproduce the bug?

Paste the following text into the REPL:

{
      "xxx": {
        "nnn": "yyy",
        "vvv": "123",
        "xyz": 123,
        "ddd": "aaa"
      },
      "yyy": "zzz",
      "zzz": {
        "yyy": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ],
        "aaa": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ]
      },
      "uuu": {
        "yyy": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ],
        "aaa": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ]
      },
      "bbb": {
        "a": "aaa",
        "b": "aaa",
        "c": "aaa",
        "d": "aaa",
        "e": "aaa",
        "f": "aaa",
        "g": "aaa",
        "h": "aaa",
        "i": "aaa",
        "g": "aaa",
        "k": "aaa"
      }
    }
How often does it reproduce? Is there a required condition?

Only when syntax highlighting is enabled

What is the expected behavior? Why is that the expected behavior?

The entirety of the pasted object should appear in the REPL

What do you see instead?

The pasted text is truncated approximately 79 lines in

Additional information

No response

主要語言
JavaScript
星號
124k
分支
38k
平均合併
4 天 2 小時
30 天內合併 PR
266

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/node 的其他 Issue

查看 nodejs/node 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。