mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
fix setrealmfn
This commit is contained in:
parent
dfb3f485c3
commit
0ab562a28e
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||||
// object.$setrealm({}).postMessage(...)
|
// object.$setrealm({}).postMessage(...)
|
||||||
// the empty object is the "pollutant" which can reconstruct the real realm
|
// the empty object is the "pollutant" which can reconstruct the real realm
|
||||||
// i explain more in postmessage.ts
|
// i explain more in postmessage.ts
|
||||||
Object.defineProperty(self.Object.prototype, config.setrealmfn, {
|
Object.defineProperty(self.Object.prototype, config.globals.setrealmfn, {
|
||||||
value(pollution: {}) {
|
value(pollution: {}) {
|
||||||
// this is bad!! sites could detect this
|
// this is bad!! sites could detect this
|
||||||
Object.defineProperty(this, POLLUTANT, {
|
Object.defineProperty(this, POLLUTANT, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue