blob: 6e2f0811c41a23f27595b4da944aed4fb5bc61e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: String.prototype.lastIndexOf(searchString, position)
es5id: 15.5.4.8_A1_T5
description: >
Call lastIndexOf(searchString, position) function with null
argument of function object
---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(null) evaluates to "null" lastIndexOf(null) evaluates to lastIndexOf("",0)
if (function() {
return "gnullunazzgnull"
}().lastIndexOf(null) !== 11) {
throw new Test262Error('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: ' + function() {
return "gnullunazzgnull"
}().lastIndexOf(null));
}
//
//////////////////////////////////////////////////////////////////////////////
reportCompare(0, 0);
|