File: sourcemap-separate-module.debugger.output

package info (click to toggle)
gjs 1.86.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,724 kB
  • sloc: cpp: 39,075; javascript: 30,720; ansic: 15,971; sh: 1,759; python: 772; xml: 135; makefile: 40
file content (44 lines) | stat: -rw-r--r-- 1,525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
GJS debugger. Type "help" for help
db> # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
db> # SPDX-FileCopyrightText: 2024 Gary Li <gary.li1@uwaterloo.ca>
db> set colors false
db> list
   1	interface SuperFancyNumber {
   2	    n: number;
   3	}
   4	
  *5	export const get2ndNumber = (num: SuperFancyNumber[]) => {
   6	    return num[1].n.toFixed(1);
   7	}
db> bt
#0    module code at sourcemap-number-module.js:1:27 -> number.ts:5:29
db> frame
#0    module code at sourcemap-number-module.js:1:27 -> number.ts:5:29
   1	export var get2ndNumber = function (num) {
db> c
Unwinding due to exception. (Type 'c' to continue unwinding.)
#0    <anonymous>([object Array]) at sourcemap-number-module.js:2:5 -> number.ts:6:5
   2	    return num[1].n.toFixed(1);
Exception value is:
$1 = [object TypeError]
TypeError: can't access property "toFixed", num[1].n is null
db> list
   1	interface SuperFancyNumber {
   2	    n: number;
   3	}
   4	
   5	export const get2ndNumber = (num: SuperFancyNumber[]) => {
  *6	    return num[1].n.toFixed(1);
   7	}
db> up
#1    module code at sourcemap-separate-module.debugger.js:2:13 -> numberWork.ts:3:14
   2	get2ndNumber([{ n: 1 }, { n: null }]);
db> list
   1	import { get2ndNumber } from "./number.js";
   2	
  *3	get2ndNumber([{n:1}, {n: null}]);
db> bt
#0    <anonymous>([object Array]) at sourcemap-number-module.js:2:5 -> number.ts:6:5
#1    module code at sourcemap-separate-module.debugger.js:2:13 -> numberWork.ts:3:14
db> [quit due to end of input]
Program exited with code 0