|
1 // Copyright 2009 the Sputnik authors. All rights reserved. |
|
2 // This code is governed by the BSD license found in the LICENSE file. |
|
3 |
|
4 /** |
|
5 * String type has a length property |
|
6 * |
|
7 * @path ch08/8.4/S8.4_A3.js |
|
8 * @description Try read length property of string variable |
|
9 */ |
|
10 |
|
11 var __str = "ABCDEFGH"; |
|
12 ////////////////////////////////////////////////////////////////////////////// |
|
13 //CHECK#1 |
|
14 if (__str.length !== 8) { |
|
15 $ERROR('#1: var __str = "ABCDEFGH"; __str.length === 8. Actual: ' + (__str.length)); |
|
16 } |
|
17 // |
|
18 ////////////////////////////////////////////////////////////////////////////// |
|
19 |