Defining new properties on JSland proxies is broken
-
John Barnette
- State changed from new to open
This is because the
JSProxydefines property getters and setters itself, passing them all through to Ruby. What we should really do:Setting the
fooproperty onbar-
Is there a
foo=method? If so, invoke it. -
Is
barindexable? If so, invokebar['foo']=. -
[NEW] Set
fooas a "JSland only" property.
Getting the
fooproperty onbar-
Is there a 0-arity
foomethod? If so, invoke it. -
Is
barindexable? If so, invokebar['foo'] -
[NEW] Retrieve
foofrom "JSLand only" properties, returning null if it's nonexistent.
-
John Barnette
- Title changed from Defining new properties on JSland proxies to Defining new properties on JSland proxies is broken
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.