isDeepStrictEqual does not validate skipPrototype argument

オープン
#67,824 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, node.js
領域
backend

調査の方向性

Start in the Node.js util implementation and find isDeepStrictEqual and its handling of the third argument; the issue provides a reproduction command using require('util'). Check nearby tests for argument validation, then run the relevant test file. Done means a non-boolean skipPrototype value throws while valid boolean values retain the expected behavior.

索引モデルが issue の本文から書いたものです。

説明

Version

v26.13.0

Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem

util

What steps will reproduce the bug?
node -p "require('util').isDeepStrictEqual({}, Object.create(null), { skipPrototype: false })"
How often does it reproduce? Is there a required condition?

always

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

it should validate the third argument and throw when a non-boolean value is passed.

What do you see instead?

true is returned

Additional information

No response

主要言語
JavaScript
スター
124k
フォーク
38k
平均マージ
4日 2時間
マージ済み PR(30日)
266

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/node のほかの issue

nodejs/node の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。