mirror of https://github.com/tc39/test262.git
26 lines
859 B
JavaScript
26 lines
859 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* @name: S8.4_D2.3;
|
|
* @section: 8.4, 15.5, 7.8.4;
|
|
* @assertion: Engines implements array like access to string elemenths,
|
|
* If index of elementh is greater or equals than string length an empty string returns;
|
|
*/
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#
|
|
str='asdfghjkl';
|
|
|
|
var char__ =str[99];
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#1
|
|
if (char__!== '') {
|
|
$ERROR('#1: If index of elementh is greater or equals than string length an emty string returns');
|
|
}
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|