microsoft / vscode-loader

An universal Asynchronous Module Definition (AMD) Loader developed primarily to load VSCode's sources.
Other
170 stars 55 forks source link

[Question] Why do you use the while-loop instead of String.prototype.trim? #6

Closed friedemannsommer closed 7 years ago

friedemannsommer commented 7 years ago

Wouldn't it easier to use the String.prototype.trim method instead of the while loop? vscode-loader/src/css.ts

Tyriar commented 7 years ago

Probably because it supported IE9 at some point? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Browser_compatibility

friedemannsommer commented 7 years ago

Ah makes sense. Thank you. But supported environments lists only IE11+