blob: 833c28babaabd208914f0ba020d51a1a4198158a [file] [log] [blame]
Tom Sepez5eb17d32019-11-08 21:23:53 +00001Alert: doc is [object global]
2Alert: icon is [object Object]
3Alert: icon list is now [object Object],[object Object]
4Alert: they are named icon1 and icon2
5Alert: they are also named icon1 and icon2
6Alert: but they are made anew each time since false is returned from comparison
Tom Sepezab23ea72019-12-10 00:36:11 +00007Alert: Prototype comparison is true
8Alert: Made anew from JS side since comparison is false
9Alert: Prototype comparison is true
10Alert: Dubious name is undefined
11Alert: name is unchanged from undefined
Tom Sepez5eb17d32019-11-08 21:23:53 +000012Alert: As expected, trying to change the name gave: Icon.name: Cannot assign to readonly property.