Created
          August 23, 2018 16:07 
        
      - 
      
- 
        Save dtapuska/bd92755849991c2fd9b87e1d46691321 to your computer and use it in GitHub Desktop. 
    PostMessage equivalence
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | worker.postMessage('example', {transfer: [a,b]}); | |
| will be equivalent to | |
| worker.postMessage('example', [a, b]); | |
| window.postMessage('example', 'http://example.com'); | |
| will be equivalent to | |
| window.postMessage('example', {targetOrigin: 'http://example.com'}); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment