Skip to content

Potential hazard #10

Description

@MadProbe
const ::example = { get() { console.log(1); } }
const get = function () { console.log(2); }
const cond = Math.random() > 0.5;

cond ? null::example:get(); // How will this be parsed?
cond ? null::example:get() : get(); // and this?

(To avoid this hazard i think we can change ':' ext name operator to '.:', which seems to have no hazard at all)

cond ? null::example.:get() : get();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions