test262/test/suite/bestPractice/Sbp_A1_T1.js

18 lines
481 B
JavaScript
Raw Normal View History

2011-09-25 17:38:17 +02:00
// 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 { } in strict code can't contain function
declaration;
description: Trying to declare function at the Block statement
negative: SyntaxError
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
flags: [onlyStrict]
---*/
2011-09-25 17:38:17 +02:00
"use strict";
{
function __func(){}
}