code: function (code, id, firmwareOnly) {
          var firmware = `
              __uvm_emit = function (args) {window.parent.postMessage({__id_uvm: "${id}",__emit_uvm: args}, "*");};
  
              try {${code}} catch (e) { setTimeout(function () { throw e; }, 0); }
  
              (function (emit, id) {
                  window.addEventListener("message", function (e) {
                      (e && e.data && (typeof e.data.__emit_uvm === 'string') && (e.data.__id_uvm === id)) &&
                          emit(e.data.__emit_uvm);
                  });
              }(__uvm_dispatch, "${id}"));
              __uvm_emit('${Flatted.stringify(['load.' + id])}');
              __uvm_dispatch = null; __uvm_emit = null;
          `;
  
          return firmwareOnly ? firmware : `<!DOCTYPE html><html><head>
              <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><meta charset="UTF-8">
              <script type="text/javascript">${firmware}</script></head></html>`;
      }
docs: /*
  @note
  options.bootTimeout is not implemented in browser sandbox. Reason is that as long as we use iFrame, there is no way
  to interrupt an infinite loop.