forked from just-js/just
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debugger.js
80 lines (75 loc) · 1.28 KB
/
debugger.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
const libs = [
'lib/fs.js',
'lib/loop.js',
'lib/path.js',
'lib/process.js',
'lib/build.js',
'lib/repl.js',
'lib/configure.js',
'lib/acorn.js',
'lib/websocket.js',
'lib/inspector.js'
]
const version = just.version.just
const v8flags = '--stack-trace-limit=10 --use-strict --disallow-code-generation-from-strings'
const debug = false
const capabilities = [] // list of allowed internal modules, api calls etc. TBD
const modules = [{
name: 'sys',
obj: [
'modules/sys/sys.o'
],
lib: ['dl', 'rt']
}, {
name: 'sha1',
obj: [
'modules/sha1/sha1.o'
]
}, {
name: 'encode',
obj: [
'modules/encode/encode.o'
]
}, {
name: 'fs',
obj: [
'modules/fs/fs.o'
]
}, {
name: 'inspector',
obj: [
'modules/inspector/inspector.o'
]
}, {
name: 'net',
obj: [
'modules/net/net.o'
]
}, {
name: 'http',
obj: [
'modules/http/http.o',
'modules/http/picohttpparser.o'
]
}, {
name: 'vm',
obj: [
'modules/vm/vm.o'
]
}, {
name: 'epoll',
obj: [
'modules/epoll/epoll.o'
]
}]
const embeds = [
'just.cc',
'Makefile',
'main.cc',
'just.h',
'just.js',
'config.js'
]
const target = 'just'
const main = 'just.js'
module.exports = { version, libs, modules, capabilities, target, main, v8flags, embeds, static: false, debug }