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:
parent
b5fb05b735
commit
b6ee20846b
|
@ -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('.');
|
||||||
|
|
Loading…
Reference in New Issue