JavaScript, new.target syntax soup (2026)

By Xah Lee. Date: .

JavaScript new.target syntax soup

JavaScript new.target also violates a programing language design principle.

it inherited syntax soup from the c cpp dolts.

normally, dot means object.propertyKey. but in new .target, new is not a object. it's ad hoc syntax soup, like in js import export modules.