summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/block-scope/return-from/block-const.js
blob: d9b77b768b4bb4cb6a91107290c8ab9331c648b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
description: >
    return from block
---*/
function fn() {
  const u = 3;
  {
    const v = 6;
    return u + v;
  }
}
assert.sameValue(fn(), 9);


reportCompare(0, 0);