Sign in
webkit
/
WebKit
/
6c643757659ea20bc29c5cf95cf59bd0abe3459b
/
.
/
LayoutTests
/
js
/
script-tests
/
constant-count.js
blob: 121875d8d505c1414c18fe2de6dcb1568dacfcd1 [
file
] [
log
] [
blame
]
description
(
"This test checks exceptional cases for constant counting in the parser."
);
const
a
;
const
b
;
--
a
;
--
b
;
shouldBe
(
"a"
,
"undefined"
);
function
f
()
{
const
a
;
const
b
;
--
a
;
--
b
;
return
a
;
}
shouldBe
(
"f()"
,
"undefined"
);