Skip to content

util.inspect가 {,Weak}Map data의 루프를 체크하지 않음 #3

@youmgathatcar

Description

@youmgathatcar

Version: v8.2.1
Platform: Darwin a0999b0cf96f.ant.amazon.com 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Subsystem: util

예상 동작:

coffee> m = new Map
Map {}
coffee> m.set m, m
ref1 = Map {
    ref1 => ref1
}
coffee>

실제 동작:

coffee> m = new Map
Map {}
 coffee> m.set m, m
 Map {
     Map {
     Map {  [Object] => [Object] } => Map { [Object] => [Object] } } => Map {
     Map { [Object] => [Object] } => Map { [Object] => [Object] } } }
 coffee>

해결 해야 될 중요한 이슈 이며 적어도 문서화의 가치는 있어 보입니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions