Skip to content

Commit febe021

Browse files
committed
Import node v8.9.0 as a subtree in graal-nodejs.
2 parents 658f461 + f76ce0a commit febe021

23,607 files changed

Lines changed: 5838407 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

graal-nodejs/.editorconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[vcbuild.bat]
10+
end_of_line = crlf
11+
12+
[{lib,src,test}/**.js]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[src/**.{h,cc}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[test/*.py]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[configure]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[Makefile]
29+
indent_style = tab
30+
indent_size = 8
31+
32+
[{deps,tools}/**]
33+
indent_style = ignore
34+
indent_size = ignore
35+
end_of_line = ignore
36+
trim_trailing_whitespace = ignore
37+
charset = ignore
38+
39+
[{test/fixtures,deps,tools/eslint,tools/gyp,tools/icu,tools/msvs}/**]
40+
insert_final_newline = false

graal-nodejs/.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
lib/internal/v8_prof_polyfill.js
2+
lib/punycode.js
3+
test/addons/??_*
4+
test/fixtures
5+
tools/eslint
6+
tools/icu
7+
node_modules
8+
benchmark/tmp
9+
doc/**/*.js

graal-nodejs/.eslintrc.yaml

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
root: true
2+
3+
plugins:
4+
- markdown
5+
6+
env:
7+
node: true
8+
es6: true
9+
10+
parserOptions:
11+
ecmaVersion: 2017
12+
13+
overrides:
14+
- files: ["doc/api/esm.md", "*.mjs", "test/es-module/test-esm-example-loader.js"]
15+
parserOptions:
16+
sourceType: module
17+
18+
rules:
19+
# Possible Errors
20+
# http://eslint.org/docs/rules/#possible-errors
21+
for-direction: error
22+
no-control-regex: error
23+
no-debugger: error
24+
no-dupe-args: error
25+
no-dupe-keys: error
26+
no-duplicate-case: error
27+
no-empty-character-class: error
28+
no-ex-assign: error
29+
no-extra-boolean-cast: error
30+
no-extra-parens: [error, functions]
31+
no-extra-semi: error
32+
no-func-assign: error
33+
no-invalid-regexp: error
34+
no-irregular-whitespace: error
35+
no-obj-calls: error
36+
no-template-curly-in-string: error
37+
no-unexpected-multiline: error
38+
no-unreachable: error
39+
no-unsafe-negation: error
40+
use-isnan: error
41+
valid-typeof: error
42+
43+
# Best Practices
44+
# http://eslint.org/docs/rules/#best-practices
45+
accessor-pairs: error
46+
dot-location: [error, property]
47+
eqeqeq: [error, smart]
48+
no-fallthrough: error
49+
no-global-assign: error
50+
no-multi-spaces: [error, {ignoreEOLComments: true}]
51+
no-octal: error
52+
no-proto: error
53+
no-redeclare: error
54+
no-restricted-properties:
55+
- error
56+
- object: assert
57+
property: deepEqual
58+
message: Use assert.deepStrictEqual().
59+
- object: assert
60+
property: equal
61+
message: Use assert.strictEqual() rather than assert.equal().
62+
- object: assert
63+
property: notEqual
64+
message: Use assert.notStrictEqual() rather than assert.notEqual().
65+
- property: __defineGetter__
66+
message: __defineGetter__ is deprecated.
67+
- property: __defineSetter__
68+
message: __defineSetter__ is deprecated.
69+
no-self-assign: error
70+
no-throw-literal: error
71+
no-unused-labels: error
72+
no-useless-call: error
73+
no-useless-concat: error
74+
no-useless-escape: error
75+
no-useless-return: error
76+
no-void: error
77+
no-with: error
78+
79+
# Strict Mode
80+
# http://eslint.org/docs/rules/#strict-mode
81+
strict: [error, global]
82+
83+
# Variables
84+
# http://eslint.org/docs/rules/#variables
85+
no-delete-var: error
86+
no-undef: error
87+
no-unused-vars: [error, {args: none}]
88+
no-use-before-define: [error, {classes: true,
89+
functions: false,
90+
variables: false}]
91+
92+
# Node.js and CommonJS
93+
# http://eslint.org/docs/rules/#nodejs-and-commonjs
94+
no-mixed-requires: error
95+
no-new-require: error
96+
no-path-concat: error
97+
no-restricted-modules: [error, sys]
98+
99+
# Stylistic Issues
100+
# http://eslint.org/docs/rules/#stylistic-issues
101+
block-spacing: error
102+
brace-style: [error, 1tbs, {allowSingleLine: true}]
103+
comma-dangle: [error, only-multiline]
104+
comma-spacing: error
105+
comma-style: error
106+
computed-property-spacing: error
107+
eol-last: error
108+
func-call-spacing: error
109+
func-name-matching: error
110+
func-style: [error, declaration, {allowArrowFunctions: true}]
111+
indent: [error, 2, {ArrayExpression: first,
112+
CallExpression: {arguments: first},
113+
FunctionDeclaration: {parameters: first},
114+
FunctionExpression: {parameters: first},
115+
MemberExpression: off,
116+
ObjectExpression: first,
117+
SwitchCase: 1}]
118+
key-spacing: [error, {mode: minimum}]
119+
keyword-spacing: error
120+
linebreak-style: [error, unix]
121+
max-len: [error, {code: 80,
122+
ignorePattern: "^\/\/ Flags:",
123+
ignoreRegExpLiterals: true,
124+
ignoreUrls: true,
125+
tabWidth: 2}]
126+
new-parens: error
127+
no-lonely-if: error
128+
no-mixed-spaces-and-tabs: error
129+
no-multiple-empty-lines: [error, {max: 2, maxEOF: 0, maxBOF: 0}]
130+
no-restricted-syntax: [error, {
131+
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])",
132+
message: "use a regular expression for second argument of assert.throws()"
133+
}, {
134+
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.length<2]",
135+
message: "assert.throws() must be invoked with at least two arguments."
136+
}, {
137+
selector: "CallExpression[callee.name='setTimeout'][arguments.length<2]",
138+
message: "setTimeout() must be invoked with at least two arguments."
139+
}, {
140+
selector: "CallExpression[callee.name='setInterval'][arguments.length<2]",
141+
message: "setInterval() must be invoked with at least 2 arguments."
142+
}, {
143+
selector: "ThrowStatement > CallExpression[callee.name=/Error$/]",
144+
message: "Use new keyword when throwing an Error."
145+
}]
146+
no-tabs: error
147+
no-trailing-spaces: error
148+
object-curly-spacing: [error, always]
149+
one-var-declaration-per-line: error
150+
operator-linebreak: [error, after]
151+
quotes: [error, single, avoid-escape]
152+
semi: error
153+
semi-spacing: error
154+
space-before-blocks: [error, always]
155+
space-before-function-paren: [error, {
156+
anonymous: never,
157+
named: never,
158+
asyncArrow: always
159+
}]
160+
space-in-parens: [error, never]
161+
space-infix-ops: error
162+
space-unary-ops: error
163+
unicode-bom: error
164+
165+
# ECMAScript 6
166+
# http://eslint.org/docs/rules/#ecmascript-6
167+
arrow-parens: [error, always]
168+
arrow-spacing: [error, {before: true, after: true}]
169+
constructor-super: error
170+
no-class-assign: error
171+
no-confusing-arrow: error
172+
no-const-assign: error
173+
no-dupe-class-members: error
174+
no-new-symbol: error
175+
no-this-before-super: error
176+
prefer-const: [error, {ignoreReadBeforeAssign: true}]
177+
rest-spread-spacing: error
178+
symbol-description: error
179+
template-curly-spacing: error
180+
181+
# Custom rules in tools/eslint-rules
182+
no-unescaped-regexp-dot: error
183+
184+
# Global scoped method and vars
185+
globals:
186+
COUNTER_HTTP_CLIENT_REQUEST: false
187+
COUNTER_HTTP_CLIENT_RESPONSE: false
188+
COUNTER_HTTP_SERVER_REQUEST: false
189+
COUNTER_HTTP_SERVER_RESPONSE: false
190+
COUNTER_NET_SERVER_CONNECTION: false
191+
COUNTER_NET_SERVER_CONNECTION_CLOSE: false
192+
DTRACE_HTTP_CLIENT_REQUEST: false
193+
DTRACE_HTTP_CLIENT_RESPONSE: false
194+
DTRACE_HTTP_SERVER_REQUEST: false
195+
DTRACE_HTTP_SERVER_RESPONSE: false
196+
DTRACE_NET_SERVER_CONNECTION: false
197+
DTRACE_NET_STREAM_END: false
198+
LTTNG_HTTP_CLIENT_REQUEST: false
199+
LTTNG_HTTP_CLIENT_RESPONSE: false
200+
LTTNG_HTTP_SERVER_REQUEST: false
201+
LTTNG_HTTP_SERVER_RESPONSE: false
202+
LTTNG_NET_SERVER_CONNECTION: false
203+
LTTNG_NET_STREAM_END: false

graal-nodejs/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test/fixtures/* -text
2+
vcbuild.bat text eol=crlf
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
Thank you for reporting an issue.
3+
4+
This issue tracker is for bugs and issues found within Node.js core.
5+
If you require more general support please file an issue on our help
6+
repo. https://github.com/nodejs/help
7+
8+
9+
Please fill in as much of the template below as you're able.
10+
11+
Version: output of `node -v`
12+
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
13+
Subsystem: if known, please specify affected core module name
14+
15+
If possible, please provide code that demonstrates the problem, keeping it as
16+
simple and free of external dependencies as you are able.
17+
-->
18+
19+
* **Version**:
20+
* **Platform**:
21+
* **Subsystem**:
22+
23+
<!-- Enter your issue details below this comment. -->
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!--
2+
Thank you for your pull request. Please provide a description above and review
3+
the requirements below.
4+
5+
Bug fixes and new features should include tests and possibly benchmarks.
6+
7+
Contributors guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
8+
-->
9+
10+
##### Checklist
11+
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
12+
13+
- [ ] `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes
14+
- [ ] tests and/or benchmarks are included
15+
- [ ] documentation is changed or added
16+
- [ ] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#commit-message-guidelines)
17+
18+
##### Affected core subsystem(s)
19+
<!-- Provide affected core subsystem(s) (like doc, cluster, crypto, etc). -->

0 commit comments

Comments
 (0)