Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
libcore
/
3789983e89c9de252ef546a1b98a732a7d066650
/
.
/
test
/
jdk
/
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
);
}
}