Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
tests
/
ecma_6
/
Class
/
superPropIncDecElem.js
blob: a7b93eb371cddf4841ef9fcc042f3619e9fa6c2b [
file
] [
log
] [
blame
]
// #1
function
base
()
{
}
base
.
prototype
=
{
test
()
{
--
super
[
1
];
}
}
var
d
=
new
base
();
d
.
test
();
// #2
class
test2
{
test
()
{
super
[
1
]++;
}
}
var
d
=
new
test2
();
d
.
test
()
if
(
typeof
reportCompare
===
'function'
)
reportCompare
(
0
,
0
,
"OK"
);