Sign in
webkit
/
WebKit
/
63c63479e42d5d7cd9e5c20fa3c0adb62aed122e
/
.
/
JSTests
/
stress
/
class-field-arrow-function-using-super.js
blob: 5a3977be8d06cfceef1ba888041a1aba8e42d38b [
file
] [
log
] [
blame
]
function
assert
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
Error
(
"Expected: "
+
expected
+
" Actual: "
+
actual
);
}
class
C
{
func
=
()
=>
{
super
.
prop
=
"foo"
;
return
this
.
prop
;
};
}
let c
=
new
C
;
assert
(
c
.
func
(),
"foo"
);