-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobals.fls
More file actions
63 lines (51 loc) · 1.7 KB
/
Copy pathglobals.fls
File metadata and controls
63 lines (51 loc) · 1.7 KB
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
_g: {
use_class_ext: false,
use_export: false,
use_list_slice: false,
use_pipeline: false,
use_next_tick: false,
built_in_names: [
'console', 'eval', 'setTimeout', 'setInterval', 'clearTimeout', 'parseInt', 'parseFloat',
'isFinite', 'isNaN', 'Number', 'Array', 'Object', 'Function', 'JSON', 'RegExp', 'Math',
'String', 'Date', 'NaN', 'undefined', 'Infinity', 'null', 'escape', 'unescape', 'encodeURI',
'decodeURI', 'encodeURIComponent', 'decodeURIComponent', 'Error', 'EvalError', 'RangeError',
'ReferenceError', 'SyntaxError', 'TypeError', 'URIError',
],
opt_externs: [],
opt_input: null,
opt_output: null,
opt_export_point: null,
opt_debug_level: null,
}
export func useClassExt()
_g.use_class_ext: true
export func useExport()
_g.use_export: true
export func useListSlice()
_g.use_list_slice: true
export func usePipeline()
_g.use_pipeline: true
export func useNextTick()
_g.use_next_tick: true
export func addExterns(e)
e |: _g.opt_externs.push($)
export func setInput(i)
if _g.opt_input != null
throw Error('`input file` option already set')
_g.opt_input: i
export func setOutput(o)
if _g.opt_output != null
throw Error('`output file` option already set')
_g.opt_output: o
export func setExportPoint(p)
if _g.opt_export_point != null
throw Error('`export point` option already set')
_g.opt_export_point: p
export func setDebugLevel(d)
if _g.opt_debug_level != null
throw Error('`debug` option already set')
_g.opt_debug_level: d
export func debugLevel()
return 0 if _g.opt_debug_level = null else _g.opt_debug_level
export func g()
return _g