mirror of https://github.com/tc39/test262.git
22 lines
592 B
JavaScript
22 lines
592 B
JavaScript
// 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: early
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
function __func(){};
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#1
|
|
y={__func;}();
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|