Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Aug 31, 2022
1 parent 2edf2ea commit 69e6cf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js_native_api_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ napi_status NAPI_CDECL napi_create_environment(napi_platform platform,
"const internalLoader = new ESMLoader;"
"const parent_path = require('url').pathToFileURL(process.argv[0]);"
"global.import = (mod) => internalLoader.import(mod, parent_path, "
"Object.create(null));";
"Object.create(null));"
"global.import.meta = { url: parent_path };";

auto wrapper = reinterpret_cast<v8impl::PlatformWrapper*>(platform);
std::vector<std::string> errors_vec;
Expand Down

0 comments on commit 69e6cf4

Please sign in to comment.