example_cpp_smart_card_client_app/src/background.js
/**
 * Loads the binary executable module depending on the toolchain configuration.
 * @return {!GSC.ExecutableModule}
 */
Loads the binary executable module depending on the toolchain configuration.
Loads the binary executable module depending on the toolchain configuration .
function createExecutableModule() {
  switch (GSC.ExecutableModule.TOOLCHAIN) {
    case GSC.ExecutableModule.Toolchain.PNACL:
      return new GSC.NaclModule(
          'executable_module.nmf', GSC.NaclModule.Type.PNACL);
    case GSC.ExecutableModule.Toolchain.EMSCRIPTEN:
      return new GSC.EmscriptenModule('executable_module');
  }
  GSC.Logging.fail(
      `Cannot load executable module: unknown toolchain ` +
      `${GSC.ExecutableModule.TOOLCHAIN}`);
  goog.asserts.fail();
}
function createExecutableModule ( ) { switch ( GSC . ExecutableModule . TOOLCHAIN ) { case GSC . ExecutableModule . Toolchain . PNACL : return new GSC . NaclModule ( 'executable_module.nmf' , GSC . NaclModule . Type . PNACL ) ; case GSC . ExecutableModule . Toolchain . EMSCRIPTEN : return new GSC . EmscriptenModule ( 'executable_module' ) ; } GSC . Logging . fail ( ` ` + ` ${ GSC . ExecutableModule . TOOLCHAIN } ` ) ; goog . asserts . fail ( ) ; }
Loads the binary executable module depending on the toolchain configuration.
Loads the binary executable module depending on the toolchain configuration .