mirror of https://github.com/tc39/test262.git
19 lines
419 B
JavaScript
19 lines
419 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: FunctionDeclaration within a "while" Statement is not allowed
|
|
description: >
|
|
Checking if declaring a function within a "while" Statement that
|
|
is in a function body leads to an exception
|
|
flags: [negative]
|
|
---*/
|
|
|
|
function(){
|
|
|
|
while(0){
|
|
function __func(){};
|
|
};
|
|
|
|
};
|