hannesw@1354: set(1) hannesw@1354: Setting accessor on 1 to 1 hannesw@1354: hannesw@1354: set(str) hannesw@1354: Setting accessor on str to 1 hannesw@1354: hannesw@1354: set(true) hannesw@1354: Setting accessor on true to 1 hannesw@1354: hannesw@1354: set([object Object]) hannesw@1354: Setting accessor on [object Object] to 1 hannesw@1354: hannesw@1354: set() hannesw@1354: Setting accessor on to 1 hannesw@1354: hannesw@1354: setStrict(1) hannesw@1354: TypeError: "foo" is not a writable property of 1 hannesw@1354: TypeError: "constructor" is not a writable property of 1 hannesw@1354: Setting accessor on 1 to 1 hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: hannesw@1354: setStrict(str) hannesw@1354: TypeError: "foo" is not a writable property of str hannesw@1354: TypeError: "constructor" is not a writable property of str hannesw@1354: Setting accessor on str to 1 hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: hannesw@1354: setStrict(true) hannesw@1354: TypeError: "foo" is not a writable property of true hannesw@1354: TypeError: "constructor" is not a writable property of true hannesw@1354: Setting accessor on true to 1 hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: hannesw@1354: setStrict([object Object]) hannesw@1354: Setting accessor on [object Object] to 1 hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: hannesw@1354: setStrict() hannesw@1354: Setting accessor on to 1 hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Array] that has only a getter hannesw@1354: hannesw@1354: setAttr(1, foo) hannesw@1354: hannesw@1354: setAttr(1, constructor) hannesw@1354: hannesw@1354: setAttr(1, accessor) hannesw@1354: Setting accessor on 1 to 1 hannesw@1354: hannesw@1354: setAttr(1, getterOnly) hannesw@1354: hannesw@1354: setAttr(str, foo) hannesw@1354: hannesw@1354: setAttr(str, constructor) hannesw@1354: hannesw@1354: setAttr(str, accessor) hannesw@1354: Setting accessor on str to 1 hannesw@1354: hannesw@1354: setAttr(str, getterOnly) hannesw@1354: hannesw@1354: setAttr(true, foo) hannesw@1354: hannesw@1354: setAttr(true, constructor) hannesw@1354: hannesw@1354: setAttr(true, accessor) hannesw@1354: Setting accessor on true to 1 hannesw@1354: hannesw@1354: setAttr(true, getterOnly) hannesw@1354: hannesw@1354: setAttrStrict(1, foo) hannesw@1354: TypeError: "foo" is not a writable property of 1 hannesw@1354: hannesw@1354: setAttrStrict(1, constructor) hannesw@1354: TypeError: "constructor" is not a writable property of 1 hannesw@1354: hannesw@1354: setAttrStrict(1, accessor) hannesw@1354: Setting accessor on 1 to 1 hannesw@1354: hannesw@1354: setAttrStrict(1, getterOnly) hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: hannesw@1354: setAttrStrict(str, foo) hannesw@1354: TypeError: "foo" is not a writable property of str hannesw@1354: hannesw@1354: setAttrStrict(str, constructor) hannesw@1354: TypeError: "constructor" is not a writable property of str hannesw@1354: hannesw@1354: setAttrStrict(str, accessor) hannesw@1354: Setting accessor on str to 1 hannesw@1354: hannesw@1354: setAttrStrict(str, getterOnly) hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: hannesw@1354: setAttrStrict(true, foo) hannesw@1354: TypeError: "foo" is not a writable property of true hannesw@1354: hannesw@1354: setAttrStrict(true, constructor) hannesw@1354: TypeError: "constructor" is not a writable property of true hannesw@1354: hannesw@1354: setAttrStrict(true, accessor) hannesw@1354: Setting accessor on true to 1 hannesw@1354: hannesw@1354: setAttrStrict(true, getterOnly) hannesw@1354: TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter hannesw@1354: