isDeepStrictEqual does not validate skipPrototype argument

Đang mở
#67,824 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, node.js
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
124k
Fork
38k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
266

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nodejs/node

Tất cả issue của nodejs/node

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.