author | sundar |
Wed, 06 May 2015 20:04:42 +0530 | |
changeset 30394 | 72a59e4dffea |
parent 20938 | e92d8249f60c |
permissions | -rw-r--r-- |
16147 | 1 |
sundar |
2 |
Sundararajan |
|
3 |
own properties of 'obj': |
|
4 |
0 -> foo |
|
5 |
1 -> bar |
|
6 |
has own 'foo'? true |
|
7 |
has own 'xyz'? false |
|
8 |
'foo' enumerable? true |
|
9 |
'bar' enumerable? true |
|
10 |
foo is writable? true |
|
11 |
foo is configurable? true |
|
12 |
foo is enumerable? true |
|
13 |
foo's value = 44 |
|
14 |
foo's get = undefined |
|
15 |
foo's set = undefined |
|
16 |
bar is writable? true |
|
17 |
bar is configurable? true |
|
18 |
bar is enumerable? true |
|
19 |
bar's value = orcl |
|
20 |
bar's get = undefined |
|
21 |
bar's set = undefined |
|
22 |
func is writable? true |
|
23 |
func is configurable? true |
|
24 |
func is enumerable? true |
|
25 |
func's value = function() { print("myfunc"); } |
|
26 |
func's get = undefined |
|
27 |
func's set = undefined |
|
28 |
abc is writable? undefined |
|
29 |
abc is configurable? true |
|
30 |
abc is enumerable? true |
|
31 |
abc's value = undefined |
|
20938
e92d8249f60c
8026302: source representation of getter and setter methods is wrong
sundar
parents:
16147
diff
changeset
|
32 |
abc's get = get abc() { return "abc"; } |
16147 | 33 |
abc's set = undefined |
34 |
xyz is writable? undefined |
|
35 |
xyz is configurable? true |
|
36 |
xyz is enumerable? true |
|
37 |
xyz's value = undefined |
|
38 |
xyz's get = undefined |
|
20938
e92d8249f60c
8026302: source representation of getter and setter methods is wrong
sundar
parents:
16147
diff
changeset
|
39 |
xyz's set = set xyz(val) { print(val); } |
16147 | 40 |
hey is writable? undefined |
41 |
hey is configurable? true |
|
42 |
hey is enumerable? true |
|
43 |
hey's value = undefined |
|
20938
e92d8249f60c
8026302: source representation of getter and setter methods is wrong
sundar
parents:
16147
diff
changeset
|
44 |
hey's get = get hey() { return "hey"; } |
e92d8249f60c
8026302: source representation of getter and setter methods is wrong
sundar
parents:
16147
diff
changeset
|
45 |
hey's set = set hey(val) { print(val); } |
16147 | 46 |
undefined |