Sign in
webkit
/
WebKit
/
6ada3cd2e0d9b9e450b5e021e0e5526f55f59df8
/
.
/
JSTests
/
stress
/
import-reject-with-exception.js
blob: 8a5381a6bf38a79a6fe671afd0c6e1f6058c56aa [
file
] [
log
] [
blame
]
var
abort
=
$vm
.
abort
;
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
abort
();
}
let x
=
{
get
toString
()
{
throw
new
Error
(
'bad'
);
}
};
import
(
x
).
then
(
abort
,
function
(
error
)
{
shouldBe
(
String
(
error
),
`
Error
:
bad
`);
});