mirror of
https://github.com/tc39/test262.git
synced 2025-08-27 21:08:30 +02:00
19 lines
719 B
JavaScript
19 lines
719 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* Only three expressions and two semicolons in "for" braces are allowed.
|
|
* Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError
|
|
*
|
|
* @path ch12/12.6/12.6.3/S12.6.3_A7_T1.js
|
|
* @description Checking if execution of "for(index=0; index<10; index++; index--)" fails
|
|
* @negative
|
|
*/
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#1
|
|
for(index=0; index<10; index++; index--) ;
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|