We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cfab10 commit ba0799fCopy full SHA for ba0799f
src/shell.js
@@ -235,7 +235,7 @@ if (ENVIRONMENT_IS_NODE) {
235
// EXPORT_ES6 + ENVIRONMENT_IS_NODE always requires use of import.meta.url,
236
// since there's no way getting the current absolute path of the module when
237
// support for that is not available.
238
- scriptDirectory = require('url').fileURLToPath(new URL('./', import.meta.url)); // includes trailing slash
+ scriptDirectory = require('url').fileURLToPath(new URL('./', Object(import.meta).url)); // includes trailing slash
239
#else
240
scriptDirectory = __dirname + '/';
241
#endif
0 commit comments