repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
kde
/
resources
/
const.js
blob
ed3b422605c562a5eae7c512987483502a975959
1
// constant definition
2
const
c
=
11
;
3
shouldBe
(
"c"
,
"11"
);
4
5
// attempt to redefine should have no effect
6
c
=
22
;
7
shouldBe
(
"c"
,
"11"
);
8
9
const
dummy
=
0
;
10
for
(
var
v
=
0
;;) {
11
++
v
;
12
shouldBe
(
"v"
,
"1"
);
13
break
;
14
}
15
16
// ### check for forbidden redeclaration