Sign in
pigweed
/
third_party
/
github
/
aspect-build
/
rules_js
/
e61ba049f21e1282781d77b204aca4f83b23fee4
/
.
/
examples
/
stack_traces
/
main.js
blob: 417b448bfd3fa25bb10fdbfa0a16d986db98f346 [
file
] [
log
] [
blame
]
const
{
a
}
=
require
(
'./lib/a'
)
try
{
a
()
throw
new
Error
(
'a() should throw for this test'
)
}
catch
(
e
)
{
if
(
e
.
stack
.
indexOf
(
'.runfiles/'
)
!==
-
1
)
{
throw
new
Error
(
'stacks.cjs should have stripped runfiles directories from the stack trace'
)
}
}