test/script/basic/objects.js.EXPECTED

Tue, 21 Mar 2017 13:41:57 -0700

author
asaha
date
Tue, 21 Mar 2017 13:41:57 -0700
changeset 2160
1df40fe54cd6
parent 615
fb091f9052a6
child 952
6d5471a497fb
permissions
-rw-r--r--

Merge

     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
    32 abc's get = get abc() { return "abc"; }
    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
    39 xyz's set = set xyz(val) { print(val); }
    40 hey is writable? undefined
    41 hey is configurable? true
    42 hey is enumerable? true
    43 hey's value = undefined
    44 hey's get = get hey() { return "hey"; }
    45 hey's set = set hey(val) { print(val); }
    46 undefined

mercurial