mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix: attr proxy scramjet escapes
This commit is contained in:
parent
e647545c37
commit
00dc1ab595
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,15 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
(typeof prop === "string" || typeof prop === "number") &&
|
||||||
|
!isNaN(Number(prop))
|
||||||
|
) {
|
||||||
|
const position = Object.keys(proxy)[prop];
|
||||||
|
|
||||||
|
return map[position];
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.has(target, prop)) return undefined;
|
if (!this.has(target, prop)) return undefined;
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue