Skip to content

Conversation

@heimskr
Copy link
Contributor

@heimskr heimskr commented May 24, 2025

What does this PR do?

Adds support for node:vm's SyntheticModule class. Also adds some other improvements to node:vm.

  • Documentation or TypeScript types
  • Code changes

How did you verify your code works?

Added tests from Node.js

@heimskr heimskr marked this pull request as ready for review May 28, 2025 03:57
@heimskr heimskr requested review from a team and pfgithub and removed request for a team May 28, 2025 03:57
extern "C" BunString BunString__createAtom(const char* bytes, size_t length)
{
ASSERT(simdutf::validate_ascii(bytes, length));
auto atom = tryMakeAtomString(String(StringImpl::createWithoutCopying({ bytes, length })));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't part of this pr, but we aren't checking for atom.isNull() here. should we change this to makeAtomString?

@Jarred-Sumner Jarred-Sumner merged commit 817d046 into main Jun 5, 2025
54 of 59 checks passed
@Jarred-Sumner Jarred-Sumner deleted the kai/vm-syntheticmodule branch June 5, 2025 02:41
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.

7 participants