Sign in
android
/
toolchain
/
jdk
/
jdk9_jdk
/
33f82150e85bc6b2863a998f610379d73601d507
/
.
/
test
/
tools
/
jjs
/
es6.js
blob: dc700a59bb1148495b6f7fc4016017353c52d4e5 [
file
] [
log
] [
blame
]
/*
* This is the test JavaScript program used in jjs-es6Test.sh
*/
const
X
=
4
;
try
{
X
=
55
;
throw
new
Error
(
"should have thrown TypeError"
);
}
catch
(
e
)
{
if
(!
(
e instanceof
TypeError
))
{
throw
new
Error
(
"TypeError expected, got "
+
e
);
}
}