Skip to content

Commit

Permalink
revive console.memory and .exception()
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Jun 12, 2019
1 parent a5ba3a6 commit 0313425
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18841,6 +18841,7 @@ declare var webkitRTCPeerConnection: {
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;

declare namespace console {
var memory: any;
function assert(condition?: boolean, ...data: any[]): void;
function clear(): void;
function count(label?: string): void;
Expand All @@ -18849,6 +18850,7 @@ declare namespace console {
function dir(item: any, options?: any): void;
function dirxml(...data: any[]): void;
function error(...data: any[]): void;
function exception(message?: string, ...optionalParams: any[]): void;
function group(...data: any[]): void;
function groupCollapsed(...data: any[]): void;
function groupEnd(): void;
Expand Down
2 changes: 2 additions & 0 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5532,6 +5532,7 @@ declare var XMLHttpRequestUpload: {
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;

declare namespace console {
var memory: any;
function assert(condition?: boolean, ...data: any[]): void;
function clear(): void;
function count(label?: string): void;
Expand All @@ -5540,6 +5541,7 @@ declare namespace console {
function dir(item: any, options?: any): void;
function dirxml(...data: any[]): void;
function error(...data: any[]): void;
function exception(message?: string, ...optionalParams: any[]): void;
function group(...data: any[]): void;
function groupCollapsed(...data: any[]): void;
function groupEnd(): void;
Expand Down
14 changes: 14 additions & 0 deletions inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3039,13 +3039,27 @@
"console": {
"methods": {
"method": {
"exception": {
"name": "exception",
"override-signatures": [
"exception(message?: string, ...optionalParams: any[]): void"
]
},
"timeStamp": {
"name": "timeStamp",
"override-signatures": [
"timeStamp(label?: string): void"
]
}
}
},
"properties": {
"property": {
"memory": {
"name": "memory",
"type": "any"
}
}
}
}
},
Expand Down

0 comments on commit 0313425

Please sign in to comment.