File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,9 @@ namespace ts {
2626 // More efficient to create a collator once and use its `compare` than to call `a.localeCompare(b)` many times.
2727 export const collator : { compare ( a : string , b : string ) : number } = typeof Intl === "object" && typeof Intl . Collator === "function" ? new Intl . Collator ( ) : undefined ;
2828
29- const createObject = Object . create ;
3029 /** Create a MapLike with good performance. Prefer this over a literal `{}`. */
3130 export function createMapLike < T > ( ) : MapLike < T > {
32- const map = createObject ( null ) ; // tslint:disable-line:no-null-keyword
31+ const map = Object . create ( null ) ; // tslint:disable-line:no-null-keyword
3332
3433 // Using 'delete' on an object causes V8 to put the object in dictionary mode.
3534 // This disables creation of hidden classes, which are expensive when an object is
You can’t perform that action at this time.
0 commit comments