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

hannesw@1354 1 set(1)
hannesw@1354 2 Setting accessor on 1 to 1
hannesw@1354 3
hannesw@1354 4 set(str)
hannesw@1354 5 Setting accessor on str to 1
hannesw@1354 6
hannesw@1354 7 set(true)
hannesw@1354 8 Setting accessor on true to 1
hannesw@1354 9
hannesw@1354 10 set([object Object])
hannesw@1354 11 Setting accessor on [object Object] to 1
hannesw@1354 12
hannesw@1354 13 set()
hannesw@1354 14 Setting accessor on to 1
hannesw@1354 15
hannesw@1354 16 setStrict(1)
hannesw@1354 17 TypeError: "foo" is not a writable property of 1
hannesw@1354 18 TypeError: "constructor" is not a writable property of 1
hannesw@1354 19 Setting accessor on 1 to 1
hannesw@1354 20 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 21
hannesw@1354 22 setStrict(str)
hannesw@1354 23 TypeError: "foo" is not a writable property of str
hannesw@1354 24 TypeError: "constructor" is not a writable property of str
hannesw@1354 25 Setting accessor on str to 1
hannesw@1354 26 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 27
hannesw@1354 28 setStrict(true)
hannesw@1354 29 TypeError: "foo" is not a writable property of true
hannesw@1354 30 TypeError: "constructor" is not a writable property of true
hannesw@1354 31 Setting accessor on true to 1
hannesw@1354 32 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 33
hannesw@1354 34 setStrict([object Object])
hannesw@1354 35 Setting accessor on [object Object] to 1
hannesw@1354 36 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 37
hannesw@1354 38 setStrict()
hannesw@1354 39 Setting accessor on to 1
hannesw@1354 40 TypeError: Cannot set property "getterOnly" of [object Array] that has only a getter
hannesw@1354 41
hannesw@1354 42 setAttr(1, foo)
hannesw@1354 43
hannesw@1354 44 setAttr(1, constructor)
hannesw@1354 45
hannesw@1354 46 setAttr(1, accessor)
hannesw@1354 47 Setting accessor on 1 to 1
hannesw@1354 48
hannesw@1354 49 setAttr(1, getterOnly)
hannesw@1354 50
hannesw@1354 51 setAttr(str, foo)
hannesw@1354 52
hannesw@1354 53 setAttr(str, constructor)
hannesw@1354 54
hannesw@1354 55 setAttr(str, accessor)
hannesw@1354 56 Setting accessor on str to 1
hannesw@1354 57
hannesw@1354 58 setAttr(str, getterOnly)
hannesw@1354 59
hannesw@1354 60 setAttr(true, foo)
hannesw@1354 61
hannesw@1354 62 setAttr(true, constructor)
hannesw@1354 63
hannesw@1354 64 setAttr(true, accessor)
hannesw@1354 65 Setting accessor on true to 1
hannesw@1354 66
hannesw@1354 67 setAttr(true, getterOnly)
hannesw@1354 68
hannesw@1354 69 setAttrStrict(1, foo)
hannesw@1354 70 TypeError: "foo" is not a writable property of 1
hannesw@1354 71
hannesw@1354 72 setAttrStrict(1, constructor)
hannesw@1354 73 TypeError: "constructor" is not a writable property of 1
hannesw@1354 74
hannesw@1354 75 setAttrStrict(1, accessor)
hannesw@1354 76 Setting accessor on 1 to 1
hannesw@1354 77
hannesw@1354 78 setAttrStrict(1, getterOnly)
hannesw@1354 79 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 80
hannesw@1354 81 setAttrStrict(str, foo)
hannesw@1354 82 TypeError: "foo" is not a writable property of str
hannesw@1354 83
hannesw@1354 84 setAttrStrict(str, constructor)
hannesw@1354 85 TypeError: "constructor" is not a writable property of str
hannesw@1354 86
hannesw@1354 87 setAttrStrict(str, accessor)
hannesw@1354 88 Setting accessor on str to 1
hannesw@1354 89
hannesw@1354 90 setAttrStrict(str, getterOnly)
hannesw@1354 91 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 92
hannesw@1354 93 setAttrStrict(true, foo)
hannesw@1354 94 TypeError: "foo" is not a writable property of true
hannesw@1354 95
hannesw@1354 96 setAttrStrict(true, constructor)
hannesw@1354 97 TypeError: "constructor" is not a writable property of true
hannesw@1354 98
hannesw@1354 99 setAttrStrict(true, accessor)
hannesw@1354 100 Setting accessor on true to 1
hannesw@1354 101
hannesw@1354 102 setAttrStrict(true, getterOnly)
hannesw@1354 103 TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter
hannesw@1354 104

mercurial