forked from svaarala/duktape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathissue-c2c0f091a515a1996db136eb3d126ed80407f651.yaml
51 lines (44 loc) · 1.69 KB
/
issue-c2c0f091a515a1996db136eb3d126ed80407f651.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- !ditz.rubyforge.org,2008-03-06/issue
title: "Proxy: custom feature allowing target and proxy to be the same"
desc: |-
This would correspond somewhat to Lua metatables; metatable is recorded in
the object itself. This saves one extra object at the cost of complicating
some of the algorithms (e.g. ES6 algorithms lookup properties also from the
target - same as the proxy in this case).
A simple approach would be to:
* Set the DUK_HOBJECT_FLAG_SPECIAL_PROXYOBJ for either kind of proxy.
* Indicate a revoked proxy with _handler = null.
* Indicate a custom proxy (target == proxy) by having _handler != null
and _target = null. This is used for revocation detection now, but
using only the _handler reference for revocation should be enough.
This is also nice in that the _handler and _target properties need to
be looked up anyway.
Another approach would be to use another object flag, but there is
some pressure to keep flag count in check (there are only a few free
flags right now).
type: :task
component: duk
release: v1.2
reporter: Sami Vaarala <[email protected]>
status: :unstarted
disposition:
creation_time: 2014-04-28 10:09:02.887074 Z
references: []
id: c2c0f091a515a1996db136eb3d126ed80407f651
log_events:
- - 2014-04-28 10:09:03.062982 Z
- Sami Vaarala <[email protected]>
- created
- ""
- - 2014-06-11 16:02:26.282116 Z
- Sami Vaarala <[email protected]>
- assigned to release v0.12 from v0.11
- ""
- - 2014-08-22 08:46:21.200580 Z
- Sami Vaarala <[email protected]>
- assigned to release v1.1 from v0.12
- ""
- - 2014-11-13 06:59:29.394269 Z
- Sami Vaarala <[email protected]>
- assigned to release v1.2 from v1.1
- ""