jsdom / tr46

An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing.
MIT License
32 stars 14 forks source link

Minor refactoring of the toASCII function #54

Closed KaiSchwarz-cnic closed 6 months ago

KaiSchwarz-cnic commented 6 months ago

@domenic not sure if this is of interest. I am a friend of returning as early as possible (is even a clean code rule if I recall correctly). By that processing ends as early as possible. I run test suite multiple times, it doesn't make so much difference from performance perspective, so it is about micro tuning and clean code review.

domenic commented 6 months ago

This is not of interest.