mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:10:42 +00:00
build: enable additional oxlint rules
This commit is contained in:
@@ -139,7 +139,7 @@ describe("prototype pollution prevention", () => {
|
||||
const obj: Record<string, unknown> = {};
|
||||
setPathValue(obj, ["__proto__", "polluted"], true);
|
||||
expect(({} as Record<string, unknown>).polluted).toBeUndefined();
|
||||
expect(obj.__proto__).toBe(Object.prototype);
|
||||
expect(Object.getPrototypeOf(obj)).toBe(Object.prototype);
|
||||
});
|
||||
|
||||
it("setPathValue rejects constructor in path", () => {
|
||||
|
||||
Reference in New Issue
Block a user