@@ -116,7 +116,13 @@ function enforceOptions(options) {
116116BroadcastChannel . prototype = {
117117 postMessage : function postMessage ( msg ) {
118118 if ( this . closed ) {
119- throw new Error ( 'BroadcastChannel.postMessage(): ' + 'Cannot post message after channel has closed' ) ;
119+ throw new Error ( 'BroadcastChannel.postMessage(): ' + 'Cannot post message after channel has closed ' +
120+ /**
121+ * In the past when this error appeared, it was realy hard to debug.
122+ * So now we log the msg together with the error so it at least
123+ * gives some clue about where in your application this happens.
124+ */
125+ JSON . stringify ( msg ) ) ;
120126 }
121127
122128 return _post ( this , 'message' , msg ) ;
@@ -1751,40 +1757,27 @@ function _asyncToGenerator(fn) {
17511757 } ;
17521758}
17531759
1754- module . exports = _asyncToGenerator ;
1755- module . exports [ "default" ] = module . exports , module . exports . __esModule = true ;
1760+ module . exports = _asyncToGenerator , module . exports . __esModule = true , module . exports [ "default" ] = module . exports ;
17561761} , { } ] , 15 :[ function ( require , module , exports ) {
17571762function _interopRequireDefault ( obj ) {
17581763 return obj && obj . __esModule ? obj : {
17591764 "default" : obj
17601765 } ;
17611766}
17621767
1763- module . exports = _interopRequireDefault ;
1764- module . exports [ "default" ] = module . exports , module . exports . __esModule = true ;
1768+ module . exports = _interopRequireDefault , module . exports . __esModule = true , module . exports [ "default" ] = module . exports ;
17651769} , { } ] , 16 :[ function ( require , module , exports ) {
17661770function _typeof ( obj ) {
17671771 "@babel/helpers - typeof" ;
17681772
1769- if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) {
1770- module . exports = _typeof = function _typeof ( obj ) {
1771- return typeof obj ;
1772- } ;
1773-
1774- module . exports [ "default" ] = module . exports , module . exports . __esModule = true ;
1775- } else {
1776- module . exports = _typeof = function _typeof ( obj ) {
1777- return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ;
1778- } ;
1779-
1780- module . exports [ "default" ] = module . exports , module . exports . __esModule = true ;
1781- }
1782-
1783- return _typeof ( obj ) ;
1773+ return ( module . exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol . iterator ? function ( obj ) {
1774+ return typeof obj ;
1775+ } : function ( obj ) {
1776+ return obj && "function" == typeof Symbol && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ;
1777+ } , module . exports . __esModule = true , module . exports [ "default" ] = module . exports ) , _typeof ( obj ) ;
17841778}
17851779
1786- module . exports = _typeof ;
1787- module . exports [ "default" ] = module . exports , module . exports . __esModule = true ;
1780+ module . exports = _typeof , module . exports . __esModule = true , module . exports [ "default" ] = module . exports ;
17881781} , { } ] , 17 :[ function ( require , module , exports ) {
17891782module . exports = require ( "regenerator-runtime" ) ;
17901783
0 commit comments