Open Ruffio opened 7 years ago
So the two function are made local and only set to .TextEncoder and .TextDecoder if no native are found.
You may be right that it may be best to have it in a separate fork. I don't care too much one way or the other.
I would be happy to have you make the changes here, with just a few constraints:
Would it be an idea to make it a Polifill, so if the native TextEncoder and -Decoder is available, but if not (fx. IE/Edge) then this takes over?
I have modified the code to accomplish this, but I don't know if this is the best/smartes way to do it. Maybe this is to much of a change/not within the scope?
The below is tested successfully in Chrome and IE 11: `(function () { 'use strict';
}()); `