mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
add _compile to Module prototype (#22565)
### What does this PR do?
Unblocks jazzer.js
### How did you verify your code works?
Added a test running `bun -p "module._compile ===
require('module').prototype._compile"
This commit is contained in:
@@ -698,6 +698,8 @@ static JSValue getModulePrototypeObject(VM& vm, JSObject* moduleObject)
|
||||
setterRequireFunction),
|
||||
0);
|
||||
|
||||
prototype->putDirect(vm, Identifier::fromString(vm, "_compile"_s), globalObject->modulePrototypeUnderscoreCompileFunction());
|
||||
|
||||
return prototype;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user