summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/block/S12.1_A4_T2.js
blob: 8783c5b76cec2f432ef35add37f0ba888133591e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// |reftest| error:SyntaxError
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: The production Block can't be inside of expression
es5id: 12.1_A4_T2
description: Checking if execution of "y={x;}" fails
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

x=1;

//////////////////////////////////////////////////////////////////////////////
//CHECK#1
y={x;};
//
//////////////////////////////////////////////////////////////////////////////