Exemplo n.º 1
0
Arquivo: Window.js Projeto: fer77/vue
 this.btoa = function (str) {
   const result = btoa(str);
   if (result === null) {
     throw new DOMException("The string to be encoded contains invalid characters.", "InvalidCharacterError");
   }
   return result;
 };
Exemplo n.º 2
0
 this.btoa = function (str) {
   const result = btoa(str);
   if (result === null) {
     throw new DOMException(DOMException.INVALID_CHARACTER_ERR,
       "The string to be encoded contains invalid characters.");
   }
   return result;
 };