Version
v24.1.0
Platform
Microsoft Windows NT 10.0.26100.0 x64
Subsystem
No response
What steps will reproduce the bug?
Hi,
The bug can be reproduced by running the below code snippet:
const path = require('path');
var TypedArray = Object.getPrototypeOf(Int8Array);
const fullPath = path.join("/etc", "passwd");
console.log('Full Path:', fullPath);
Object.defineProperty(TypedArray.prototype, "length", {
get: function () {
console.log("foo")
}
});
How often does it reproduce? Is there a required condition?
No specific condition
What is the expected behavior? Why is that the expected behavior?
Full Path: \etc\passwd
What do you see instead?
Full Path: \etc\passwd
foo
Additional information
No response
Version
v24.1.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Hi,
The bug can be reproduced by running the below code snippet:
How often does it reproduce? Is there a required condition?
No specific condition
What is the expected behavior? Why is that the expected behavior?
Full Path: \etc\passwd
What do you see instead?
Full Path: \etc\passwd
foo
Additional information
No response