Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/third_party/closure-compiler/node-externs/core.js
6174 views
1
/*
2
* Copyright 2012 The Closure Compiler Authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/**
18
* @fileoverview Definitions for node's core.
19
* @see http://nodejs.org/api/globals.html
20
* @see http://nodejs.org/api/modules.html
21
* @externs
22
* @author Daniel Wirtz <[email protected]>
23
*/
24
25
/**
26
* @param name
27
* @return {*}
28
*/
29
var require = function(name) {}
30
31
/**
32
* @return {string}
33
*/
34
require.resolve = function() {};
35
36
/**
37
* @type {Object.<string,*>}
38
*/
39
require.cache;
40
41
/**
42
* @type {Array}
43
*/
44
require.extensions;
45
46
/**
47
* @type {Object}
48
*/
49
require.main;
50
51
/**
52
* @type {string}
53
*/
54
var __filename;
55
56
/**
57
* @type {string}
58
*/
59
var __dirname;
60
61
/**
62
* @type {Object}
63
*/
64
var module = {};
65
66
/**
67
* @type {*}
68
*/
69
var exports;
70
71
/**
72
* @type {Object.<string,*>}
73
*/
74
module.exports;
75
76
/**
77
* @type {function(string)}
78
*/
79
module.require;
80
81
/**
82
* @type {string}
83
*/
84
module.filename;
85
86
/**
87
* @type {boolean}
88
*/
89
module.loaded;
90
91
/**
92
* @type {*}
93
*/
94
module.parent;
95
96
/**
97
* @type {Array}
98
*/
99
module.children;
100
101
/**
102
* @type {Object.<string,*>}
103
*/
104
var global = {};
105
106