blob: 42cd7e1b2bfc563a267c275b9ae8011ef870045f [file] [log] [blame]
// 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) {
$ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: ' + function() {
return "gnullunazzgnull"
}().lastIndexOf(null));
}
//
//////////////////////////////////////////////////////////////////////////////