Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2cd4040

Browse filesBrowse files
committed
Port fix in microsoft#11293 to correct file
1 parent 97d40ab commit 2cd4040
Copy full SHA for 2cd4040

2 files changed

+5-1Lines changed: 5 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/lib/es5.d.ts‎

Copy file name to clipboardExpand all lines: src/lib/es5.d.ts
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ interface Function {
244244
*/
245245
bind(this: Function, thisArg: any, ...argArray: any[]): any;
246246

247+
/** Returns a string representation of a function. */
248+
toString(): string;
249+
247250
prototype: any;
248251
readonly length: number;
249252

Collapse file

‎tests/cases/fourslash/functionTypes.ts‎

Copy file name to clipboardExpand all lines: tests/cases/fourslash/functionTypes.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
verify.numberOfErrorsInCurrentFile(0);
2424
for (var i = 1; i <= 7; i++) {
2525
goTo.marker('' + i);
26-
verify.memberListCount(7);
26+
verify.memberListCount(8);
2727
verify.completionListContains('apply');
2828
verify.completionListContains('arguments');
2929
verify.completionListContains('bind');
3030
verify.completionListContains('call');
3131
verify.completionListContains('length');
3232
verify.completionListContains('caller');
3333
verify.completionListContains('prototype');
34+
verify.completionListContains('toString');
3435
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.