Skip to content

LGTM.com - false positive #3541

@BridgeAR

Description

@BridgeAR

Description of the false positive

This is reported as unnecessary: typeof v === 'undefined' && v !== undefined

It is however the only way to detect HTMLDDA slots: https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot

It is probably a mistake in most cases though.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/nodejs/node/snapshot/c92bd56454de23b12ccf1e62b91041c9c75a6189/files/lib/internal/util/inspect.js?sort=name&dir=ASC&mode=heatmap#x5a2c29ffbb9070b0:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions