mirror of https://github.com/tc39/test262.git
19 lines
549 B
JavaScript
19 lines
549 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.1;
|
||
|
* @section: 8.4, 15.5, 7.8.4;
|
||
|
* @assertion: Engines implements array like access to string elemenths,
|
||
|
* Index of element must be nonnegative;
|
||
|
* @negative;
|
||
|
*/
|
||
|
|
||
|
//////////////////////////////////////////////////////////////////////////////
|
||
|
//CHECK#1
|
||
|
str='asdfghjkl';
|
||
|
|
||
|
var element=str[-1];
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////////////
|