diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-13 15:54:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 10:54:16 -0400 |
commit | 0ea6eb83a906bff543be4c3301f23444986b022b (patch) | |
tree | 923e5b1c7608839c9a7be545f8973ae751ee7e73 /cli/js/globals.ts | |
parent | 5105c6839904f35351481137160459fdc2edadd2 (diff) |
refactor(core/js_error): Align JSStackFrame with CallSite (#4715)
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705.
Cleans up base changes for line and column numbers.
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r-- | cli/js/globals.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts index 7e708d018..5a5f54ee1 100644 --- a/cli/js/globals.ts +++ b/cli/js/globals.ts @@ -31,15 +31,15 @@ import { core } from "./core.ts"; declare global { interface CallSite { getThis(): unknown; - getTypeName(): string; - getFunction(): Function; - getFunctionName(): string; - getMethodName(): string; - getFileName(): string; + getTypeName(): string | null; + getFunction(): Function | null; + getFunctionName(): string | null; + getMethodName(): string | null; + getFileName(): string | null; getLineNumber(): number | null; getColumnNumber(): number | null; getEvalOrigin(): string | null; - isToplevel(): boolean; + isToplevel(): boolean | null; isEval(): boolean; isNative(): boolean; isConstructor(): boolean; |