Sign in
webkit
/
WebKit
/
9f9c15eb6fdc193d77c7e606d643d4b8ec49399b
/
.
/
JSTests
/
stress
/
eval-script-contains-null-character.js
blob: 419215da49c27dbb4cbe6d9f7da05efd5d4b3e6a [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
"bad value: "
+
actual
);
}
function
test
()
{
shouldBe
(
eval
(
"(`\0`)"
),
"\0"
);
shouldBe
(
eval
(
"('\0')"
),
"\0"
);
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
test
();