(function (_, kotlin_kotlin) {
  'use strict';
  //region block: imports
  var toString = kotlin_kotlin.$_$.ak;
  var newThrowable = kotlin_kotlin.$_$.jd;
  //endregion
  //region block: pre-declaration
  //endregion
  function toJsError(_this__u8e3s4) {
    // Inline function 'js.errors.toJsErrorOrNull' call
    // Inline function 'js.reflect.upcast' call
    var tmp = _this__u8e3s4;
    var tmp0_elvis_lhs = tmp instanceof Error ? tmp : null;
    return tmp0_elvis_lhs == null ? newThrowable('Non-Kotlin exception ' + toString(_this__u8e3s4)) : tmp0_elvis_lhs;
  }
  //region block: exports
  _.$_$ = _.$_$ || {};
  _.$_$.a = toJsError;
  //endregion
  return _;
}(module.exports, require('./kotlin-kotlin-stdlib.js')));

//# sourceMappingURL=kotlin-js-core.js.map
