Bug 220709

Summary: Android WebView javascript import/export support
Product: WebKit Reporter: BartG <bgorski90>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Enhancement CC: ap
Priority: P2    
Version: WebKit Local Build   
Hardware: Other   
OS: Other   

Description BartG 2021-01-18 04:41:04 PST
I'm trying to run JavaScript modules in my Android WebView and while the script type="module" element is recognized in the html file, the keywords import/export in js files are not ("Unexpected token: export" error). This seems weird, is there a way to enable it? JavaScript works fine other than that. I'm using Android WebView 87.0.4280.141 on Samsung Galaxy A10, but had the same issue on Android emulator. Any ideas?
Comment 1 Alexey Proskuryakov 2021-01-18 17:51:47 PST
Android support has been removed from WebKit many years ago. Please report this issue to whoever maintains the branch now (perhaps Google?)