fix(benchmarks): remove reference to String.prototype.contains()

https://github.com/tc39/tc39-notes/blob/master/es6/2014-11/nov-18.md#51--44-arrayprototypecontains-and-stringprototypecontains

removed String.prototype.contains() from standard, and is not
implemented in most runtimes (SpiderMonkey still being an exception).

Closes #3570
This commit is contained in:
Caitlin Potter 2015-08-10 18:33:30 -04:00 committed by ⭐caitp⭐
parent b5fb05b735
commit b6ee20846b
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import {Math} from 'angular2/src/facade/math'; import {Math} from 'angular2/src/facade/math';
import {StringWrapper} from 'angular2/src/facade/lang';
import {ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection'; import {ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';
export var ITEMS = 1000; export var ITEMS = 1000;
@ -86,7 +86,7 @@ export class RawEntity {
} }
remove(key: string) { remove(key: string) {
if (!key.contains('.')) { if (!StringWrapper.contains(key, '.')) {
return MapWrapper.delete(this._data, key); return MapWrapper.delete(this._data, key);
} }
var pieces = key.split('.'); var pieces = key.split('.');