| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…l-esm-consumption
Cases where the same java classname would result causing a name collision.
…pha testing largely
There was a problem hiding this comment.
This PR adds ES module (ESM) support to the NativeScript Android runtime, enabling the use of .mjs files alongside traditional CommonJS .js files. The implementation includes conditional detection of ES modules, dynamic import support, import.meta functionality, and enhanced Worker constructor capabilities.
Key Changes:
Copilot reviewed 27 out of 29 changed files in this pull request and generated 4 comments.
Show a summary per file| File | Description |
|---|---|
| test-app/runtime/src/main/cpp/ModuleInternalCallbacks.cpp | Implements ES module resolution callback, import.meta initialization, dynamic import support, and Node.js built-in polyfills |
| test-app/runtime/src/main/cpp/ModuleInternal.cpp | Adds LoadESModule function to compile and evaluate .mjs files with proper registry management |
| test-app/runtime/src/main/java/com/tns/Module.java | Updates file resolution to check for .mjs extensions alongside .js files |
| test-app/runtime/src/main/cpp/Runtime.cpp | Registers V8 callbacks for import.meta and dynamic import() |
| test-app/tools/check_console_test_results.js | New script to verify test results from console output instead of XML files |
| test-app/runtime/src/main/java/com/tns/AppConfig.java | Adds logScriptLoading configuration option |
| test-app/build-tools/static-binding-generator/src/main/java/org/nativescript/staticbindinggenerator/Generator.java | Updates binding generator to create unique identifiers for .mjs files |
| test-app/app/src/main/assets/app/tests/testESModules.js | Test suite validating ES module loading, import.meta, and Worker enhancements |
test-app/runtime/src/main/cpp/ModuleInternalCallbacks.cpp:1
#include "ModuleInternal.h"
test-app/runtime/src/main/cpp/ModuleInternalCallbacks.cpp:1
#include "ModuleInternal.h"
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sorry, something went wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…l-esm-consumption
| Back | FazBrowse Home | New Git URL |
Backwards compatible.