mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	 986ad3ccf0
			
		
	
	
		986ad3ccf0
		
	
	
	
	
		
			
			Now that module loading is implemented this just works :^). Since ShadowRealm explicitly passed a null ScriptOrModule we attempt to get the top most ScriptOrModule in HostImportModuleDynamically. This won't work in general as the web specifies other behavior but for LibJS there must always be an active script to call HostImportModuleDynamically.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			111 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			111 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export const foo = "Well hello shadows";
 | |
| 
 | |
| export default "Default export";
 | |
| 
 | |
| export const bar = "'bar' export";
 |