mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
@@ -348,7 +348,7 @@ void Process::finishCreation(JSC::VM& vm)
|
||||
JSC::JSValue(JSC::jsNumber(0)));
|
||||
|
||||
this->putDirect(this->vm(), clientData->builtinNames().versionPublicName(),
|
||||
JSC::jsString(this->vm(), makeAtomString(REPORTED_NODE_VERSION)));
|
||||
JSC::jsString(this->vm(), makeString("v", REPORTED_NODE_VERSION)));
|
||||
|
||||
// this gives some way of identifying at runtime whether the SSR is happening in node or not.
|
||||
// this should probably be renamed to what the name of the bundler is, instead of "notNodeJS"
|
||||
|
||||
@@ -87,3 +87,7 @@ it("process.env", () => {
|
||||
delete process.env["LOL SMILE latin1 <abc>"];
|
||||
expect(process.env["LOL SMILE latin1 <abc>"]).toBe(undefined);
|
||||
});
|
||||
|
||||
it("process.version starts with v", () => {
|
||||
expect(process.version.startsWith("v")).toBeTruthy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user