Open adam-ah opened 1 year ago
Possibly a duplicate of (https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1093). See this comment: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1093#issuecomment-1613908105
Flutter can compile the Dart code into a browser compatible JS - main.dart.js
The JS does some preliminary checks before starts running. One of the checks is this:
The new obfuscated types do not pass this test, which results in a runtime
Uncaught TypeError: Instance of '_0x25ae98': type '_0x25ae98' is not a subtype of type 'JavaScriptObject'
exception.Expected Behavior
The original code works fine, the obfuscated should work too
Current Behavior
As above
Steps to Reproduce
flutter build web --profile
.\build\web\main.dart.js
file using the "Default" optionspython3 -m http.server 8000
)Your Environment
Stack trace
Minimal working example that will help to reproduce issue
Attached the unobfuscated minimal Dart JS sample
main.dart.js.txt