Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement import.meta.main #2556

Merged
merged 3 commits into from
Apr 4, 2023
Merged

Implement import.meta.main #2556

merged 3 commits into from
Apr 4, 2023

Conversation

Jarred-Sumner
Copy link
Collaborator

This makes it easier to see if the current script started the process

It is the equivalent of

import.meta.path === Bun.main

@Jarred-Sumner Jarred-Sumner merged commit a369fc8 into main Apr 4, 2023
@Jarred-Sumner Jarred-Sumner deleted the jarred/import-meta-main branch April 4, 2023 23:49
@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

@Jarred-Sumner 11 files with test failures on bun-darwin-x64-baseline:

  • test/js/bun/http/serve.test.ts
  • test/js/bun/resolve/png/test-png-import.test.js
  • test/js/bun/resolve/resolve.test.js
  • test/js/bun/spawn/spawn.test.ts
  • test/js/bun/sqlite/sqlite.test.js
  • test/js/bun/util/inspect.test.js
  • test/js/node/child_process/child_process-node.test.js
  • test/js/node/child_process/child_process.test.ts
  • test/js/node/process/process.test.js
  • test/js/third_party/napi_create_external/napi-create-external.test.ts
  • test/js/web/timers/setTimeout.test.js

View test output

#ab197a8b1e1e797bd80c5152609f6df972320d8b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant