blob: 8d1cd42e44351863112bb370754a8701b69b1616 (
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_T1
description: Checking if execution of "y={__func}()" fails
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
function __func(){};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
y={__func;}();
//
//////////////////////////////////////////////////////////////////////////////
|