forked from mirrors/gecko-dev
		
	 b093bf6667
			
		
	
	
		b093bf6667
		
	
	
	
	
		
			
			This custom CloneDataPolicy was already using while writing the structured clone, but not when reading it. Differential Revision: https://phabricator.services.mozilla.com/D191783
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			366 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			366 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Any copyright is dedicated to the Public Domain.
 | |
|  * http://creativecommons.org/publicdomain/zero/1.0/
 | |
|  */
 | |
| "use strict";
 | |
| 
 | |
| onconnect = function (evt) {
 | |
|   console.profile("Hello profiling from a SharedWorker!");
 | |
|   console.log("Hello world from a SharedWorker!");
 | |
|   console.log("Here is a SAB", new SharedArrayBuffer(1024));
 | |
|   evt.ports[0].postMessage("ok!");
 | |
| };
 |