Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
tests
/
ecma_6
/
Class
/
derivedConstructorTDZOffEdge.js
blob: 145b12d2a1130290d0be687c94be19ea7a399747 [
file
] [
log
] [
blame
]
class
foo extends
null
{
constructor
()
{
// Let it fall off the edge and throw.
}
}
for
(
let i
=
0
;
i
<
1100
;
i
++)
assertThrownErrorContains
(()
=>
new
foo
(),
"|this|"
);
if
(
typeof
reportCompare
===
'function'
)
reportCompare
(
0
,
0
,
"OK"
);