nashorn/test/script/basic/JDK-8066226.js.EXPECTED
author hannesw
Fri, 03 Feb 2017 13:28:00 +0100
changeset 43555 1bb10bccf057
parent 28127 08a5e0d3248d
permissions -rw-r--r--
8173888: Test for JDK-8169481 causes stack overflows in parser tests Reviewed-by: jlaskey, sundar

set(1)
Setting accessor on 1 to 1

set(str)
Setting accessor on str to 1

set(true)
Setting accessor on true to 1

set([object Object])
Setting accessor on [object Object] to 1

set()
Setting accessor on  to 1

setStrict(1)
TypeError: "foo" is not a writable property of 1
TypeError: "constructor" is not a writable property of 1
Setting accessor on 1 to 1
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

setStrict(str)
TypeError: "foo" is not a writable property of str
TypeError: "constructor" is not a writable property of str
Setting accessor on str to 1
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

setStrict(true)
TypeError: "foo" is not a writable property of true
TypeError: "constructor" is not a writable property of true
Setting accessor on true to 1
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

setStrict([object Object])
Setting accessor on [object Object] to 1
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

setStrict()
Setting accessor on  to 1
TypeError: Cannot set property "getterOnly" of [object Array] that has only a getter

setAttr(1, foo)

setAttr(1, constructor)

setAttr(1, accessor)
Setting accessor on 1 to 1

setAttr(1, getterOnly)

setAttr(str, foo)

setAttr(str, constructor)

setAttr(str, accessor)
Setting accessor on str to 1

setAttr(str, getterOnly)

setAttr(true, foo)

setAttr(true, constructor)

setAttr(true, accessor)
Setting accessor on true to 1

setAttr(true, getterOnly)

setAttrStrict(1, foo)
TypeError: "foo" is not a writable property of 1

setAttrStrict(1, constructor)
TypeError: "constructor" is not a writable property of 1

setAttrStrict(1, accessor)
Setting accessor on 1 to 1

setAttrStrict(1, getterOnly)
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

setAttrStrict(str, foo)
TypeError: "foo" is not a writable property of str

setAttrStrict(str, constructor)
TypeError: "constructor" is not a writable property of str

setAttrStrict(str, accessor)
Setting accessor on str to 1

setAttrStrict(str, getterOnly)
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter

setAttrStrict(true, foo)
TypeError: "foo" is not a writable property of true

setAttrStrict(true, constructor)
TypeError: "constructor" is not a writable property of true

setAttrStrict(true, accessor)
Setting accessor on true to 1

setAttrStrict(true, getterOnly)
TypeError: Cannot set property "getterOnly" of [object Object] that has only a getter