test/script/basic/JDK-8066226.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 1354
24a72d0aef36
permissions
-rw-r--r--

Merge

     1 set(1)
     2 Setting accessor on 1 to 1
     4 set(str)
     5 Setting accessor on str to 1
     7 set(true)
     8 Setting accessor on true to 1
    10 set([object Object])
    11 Setting accessor on [object Object] to 1
    13 set()
    14 Setting accessor on  to 1
    16 setStrict(1)
    17 TypeError: "foo" is not a writable property of 1
    18 TypeError: "constructor" is not a writable property of 1
    19 Setting accessor on 1 to 1
    20 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
    22 setStrict(str)
    23 TypeError: "foo" is not a writable property of str
    24 TypeError: "constructor" is not a writable property of str
    25 Setting accessor on str to 1
    26 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
    28 setStrict(true)
    29 TypeError: "foo" is not a writable property of true
    30 TypeError: "constructor" is not a writable property of true
    31 Setting accessor on true to 1
    32 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
    34 setStrict([object Object])
    35 Setting accessor on [object Object] to 1
    36 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
    38 setStrict()
    39 Setting accessor on  to 1
    40 TypeError: Cannot set property "getterOnly" of [object Array] that has only a getter
    42 setAttr(1, foo)
    44 setAttr(1, constructor)
    46 setAttr(1, accessor)
    47 Setting accessor on 1 to 1
    49 setAttr(1, getterOnly)
    51 setAttr(str, foo)
    53 setAttr(str, constructor)
    55 setAttr(str, accessor)
    56 Setting accessor on str to 1
    58 setAttr(str, getterOnly)
    60 setAttr(true, foo)
    62 setAttr(true, constructor)
    64 setAttr(true, accessor)
    65 Setting accessor on true to 1
    67 setAttr(true, getterOnly)
    69 setAttrStrict(1, foo)
    70 TypeError: "foo" is not a writable property of 1
    72 setAttrStrict(1, constructor)
    73 TypeError: "constructor" is not a writable property of 1
    75 setAttrStrict(1, accessor)
    76 Setting accessor on 1 to 1
    78 setAttrStrict(1, getterOnly)
    79 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
    81 setAttrStrict(str, foo)
    82 TypeError: "foo" is not a writable property of str
    84 setAttrStrict(str, constructor)
    85 TypeError: "constructor" is not a writable property of str
    87 setAttrStrict(str, accessor)
    88 Setting accessor on str to 1
    90 setAttrStrict(str, getterOnly)
    91 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
    93 setAttrStrict(true, foo)
    94 TypeError: "foo" is not a writable property of true
    96 setAttrStrict(true, constructor)
    97 TypeError: "constructor" is not a writable property of true
    99 setAttrStrict(true, accessor)
   100 Setting accessor on true to 1
   102 setAttrStrict(true, getterOnly)
   103 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

mercurial