# \#proxy

**URL:** https://es.discourse.group/tag/proxy/3.md

[Latest](https://es.discourse.group/latest.md) · [Categories](https://es.discourse.group/categories.md) · [Tags](https://es.discourse.group/tags.md)

---

## [Another operator overload proposal idea but for Proxy](https://es.discourse.group/t/another-operator-overload-proposal-idea-but-for-proxy/2475)

<div class="topic-metadata">

**Author:** [@jcubic](https://es.discourse.group/u/jcubic)\
**Replies:** 1\
**Last updated:** [December 15, 2025, 6:32pm UTC](https://es.discourse.group/t/another-operator-overload-proposal-idea-but-for-proxy/2475 "2025-12-15T18:32:41Z")

</div>

The proposal for operator overload was withdrawn: I wanted to share yet again a proposal for adding an operator overload but for Proxy. It will be only one change and allow full operator overload and implementation of…

---

## [Make private properties and proxy work together (RETRACTED)](https://es.discourse.group/t/make-private-properties-and-proxy-work-together-retracted/2293)

<div class="topic-metadata">

**Author:** [@nkoq](https://es.discourse.group/u/nkoq)\
**Replies:** 17\
**Last updated:** [February 2, 2025, 5:02pm UTC](https://es.discourse.group/t/make-private-properties-and-proxy-work-together-retracted/2293 "2025-02-02T17:02:56Z")

</div>

EDIT 2: I retract my proposal. I need to get my act together first if at all. EDIT: I made a mistake (wrongly assumed that proxy failures with private properties are silent). Not yet sure how to fix this mistake. Sorry. …

---

## [Untrapped proxy properties](https://es.discourse.group/t/untrapped-proxy-properties/2175)

<div class="topic-metadata">

**Author:** [@wintercounter](https://es.discourse.group/u/wintercounter)\
**Replies:** 6\
**Last updated:** [November 6, 2024, 11:55am UTC](https://es.discourse.group/t/untrapped-proxy-properties/2175 "2024-11-06T11:55:13Z")

</div>

From time to time I'm using proxies to generate things on demand. It always bothered me the performance loss I get, especially on long proxy chains. I always cache the generated stuff in separate objects/maps, but invoki…

---

## [How to create a proxy function for function call chaining in javascript?](https://es.discourse.group/t/how-to-create-a-proxy-function-for-function-call-chaining-in-javascript/2189)

<div class="topic-metadata">

**Author:** [@nyxshield](https://es.discourse.group/u/nyxshield)\
**Replies:** 0\
**Last updated:** [November 3, 2024, 7:39am UTC](https://es.discourse.group/t/how-to-create-a-proxy-function-for-function-call-chaining-in-javascript/2189 "2024-11-03T07:39:20Z")

</div>

For example, I would like to be able to execute a(b)(c) where a, b, and c are proxy functions that I create. So far I wrote the following piece of code: function createProxy(funcName) { const proxy = new Proxy(fu…

---

## [Proxy drilling once again ...](https://es.discourse.group/t/proxy-drilling-once-again/1850)

<div class="topic-metadata">

**Author:** [@WebReflection](https://es.discourse.group/u/WebReflection)\
**Replies:** 32\
**Last updated:** [November 27, 2023, 9:03am UTC](https://es.discourse.group/t/proxy-drilling-once-again/1850 "2023-11-27T09:03:29Z")

</div>

// this breaks Object.keys(new Proxy(\[1\], {ownKeys: () =\> \[\]})); Object.getOwnPropertyNames(new Proxy(\[1\], {ownKeys: () =\> \[\]})); // this works Object.keys(new Proxy({v: 1}, {ownKeys: () =\> \[\]})); I've already raised t…

---

## [The Array.isArray shenanigans](https://es.discourse.group/t/the-array-isarray-shenanigans/1745)

<div class="topic-metadata">

**Author:** [@WebReflection](https://es.discourse.group/u/WebReflection)\
**Replies:** 42\
**Last updated:** [November 17, 2023, 2:43pm UTC](https://es.discourse.group/t/the-array-isarray-shenanigans/1745 "2023-11-17T14:43:31Z")

</div>

I have a library (not worth a mention for this thread sake) that forward any Proxy trap to another realm and it was my surprise to realize that Array.isArray(ref) returns always true or always false if that Proxied value…

---

## [What is the rationale behind the invariants of the \[\[Get\]\] internal method of Proxy exotic objects?](https://es.discourse.group/t/what-is-the-rationale-behind-the-invariants-of-the-get-internal-method-of-proxy-exotic-objects/1847)

<div class="topic-metadata">

**Author:** [@balagge](https://es.discourse.group/u/balagge)\
**Replies:** 5\
**Last updated:** [November 13, 2023, 3:35pm UTC](https://es.discourse.group/t/what-is-the-rationale-behind-the-invariants-of-the-get-internal-method-of-proxy-exotic-objects/1847 "2023-11-13T15:35:14Z")

</div>

The specification has the following invariants: The value reported for a property must be the same as the value of the corresponding target object property if the target object property is a non-writable, non-configur…

---

## [The case when it will be useful to have changeable Proxy.target](https://es.discourse.group/t/the-case-when-it-will-be-useful-to-have-changeable-proxy-target/1829)

<div class="topic-metadata">

**Author:** [@c-smile](https://es.discourse.group/u/c-smile)\
**Replies:** 6\
**Last updated:** [November 8, 2023, 7:41pm UTC](https://es.discourse.group/t/the-case-when-it-will-be-useful-to-have-changeable-proxy-target/1829 "2023-11-08T19:41:17Z")

</div>

There are situations where we need "stable references" to objects. Example createRef – React That function creates special Reference object that later will receive real object. The caveat is that we always need to acces…

---

## [Proposal: Reference Proxy](https://es.discourse.group/t/proposal-reference-proxy/1669)

<div class="topic-metadata">

**Author:** [@Herobrine](https://es.discourse.group/u/Herobrine)\
**Replies:** 10\
**Last updated:** [April 3, 2023, 2:44pm UTC](https://es.discourse.group/t/proposal-reference-proxy/1669 "2023-04-03T14:44:55Z")

</div>

Hey everyone! I'd like to propose a way to create proxies for primitive. I wrote a small draft here: GitHub - hugoattal/tc39-proposal-primitive-proxy: Primitive proxy proposal Here's the essence of it: TC39 proposal: …

---

## [Nested Classes](https://es.discourse.group/t/nested-classes/1354)

<div class="topic-metadata">

**Author:** [@TheAlphaReturns](https://es.discourse.group/u/TheAlphaReturns)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 3:45pm UTC](https://es.discourse.group/t/nested-classes/1354 "2022-05-30T15:45:11Z")

</div>

I would like to be able to nest classes, functionality that is available in many other languages, but not JS. Example: class A { constructor() {/\* ... \*/} class B {/\* ... \*/} } a = new A(); b = new a.B(); b2 =…

---

## [Promises vs Proxies](https://es.discourse.group/t/promises-vs-proxies/762)

<div class="topic-metadata">

**Author:** [@hopjs](https://es.discourse.group/u/hopjs)\
**Replies:** 6\
**Last updated:** [May 4, 2021, 5:10pm UTC](https://es.discourse.group/t/promises-vs-proxies/762 "2021-05-04T17:10:45Z")

</div>

Hi, I'm puzzled by the interaction between Promises and Proxy objects. I'm trying the run the following code: const prom = new Promise( (res, rej) =\> res( 34 ) ); const xprom = new Proxy( prom, {} ); Promise.prototyp…

---

## [New fetch mode "foriegn-cors"](https://es.discourse.group/t/new-fetch-mode-foriegn-cors/441)

<div class="topic-metadata">

**Author:** [@HKalbasi](https://es.discourse.group/u/HKalbasi)\
**Replies:** 4\
**Last updated:** [August 26, 2020, 6:45pm UTC](https://es.discourse.group/t/new-fetch-mode-foriegn-cors/441 "2020-08-26T18:45:46Z")

</div>

In many use cases of fetching data from cross origins, It doesn't matter "who" fetchs the data and data will be the same for every one. In those cases, cors is just a trouble and people often use cors proxies as a workar…

---

## [Better proxies](https://es.discourse.group/t/better-proxies/229)

<div class="topic-metadata">

**Author:** [@mnini](https://es.discourse.group/u/mnini)\
**Replies:** 4\
**Last updated:** [February 24, 2020, 7:51am UTC](https://es.discourse.group/t/better-proxies/229 "2020-02-24T07:51:02Z")

</div>

Proxy could work for whole objects, maybe even single variable, if you want to terminate it, just delete and make a new one, there is no reason Proxy would be useful. Also if it was fully working at present moment would…

---

## [Private field access in Proxies](https://es.discourse.group/t/private-field-access-in-proxies/172)

<div class="topic-metadata">

**Author:** [@trusktr](https://es.discourse.group/u/trusktr)\
**Replies:** 2\
**Last updated:** [December 22, 2019, 9:47am UTC](https://es.discourse.group/t/private-field-access-in-proxies/172 "2019-12-22T09:47:26Z")

</div>

Not sure if this is already under way, but: Maybe if new Proxy is created in the lexical scope of class that has private fields, then if the proxy is used in the same lexical scope, the traps for that private "property"…
