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