Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.4.5 proposal #6824

Merged
merged 76 commits into from
May 24, 2016
Merged
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d7a3ea4
src,tools: allow utf-8 in built-in js source code
bnoordhuis Feb 24, 2016
8f18414
src,tools: drop nul byte from built-in source code
bnoordhuis Feb 24, 2016
e0eebf4
src,tools: remove null sentinel from source array
bnoordhuis Feb 24, 2016
df29901
deps: upgrade npm in LTS to 2.15.2
zkat Apr 11, 2016
4e6ea7f
tools: remove obsolete npm test-legacy command
zkat Apr 11, 2016
b28e44d
http: Corrects IPv6 address in Host header
mpotra Feb 19, 2016
51c0808
stream: Fix readableState.awaitDrain mechanism
addaleax Apr 2, 2016
59a977d
assert: respect assert.doesNotThrow message.
Aug 17, 2015
c893cd3
tools,doc: parse types in braces everywhere
estliberitas Feb 20, 2016
4ad7184
build: add suport for x86 architecture
robertchiras Mar 3, 2016
918d33a
build: add script to create Android .mk files
robertchiras Mar 3, 2016
3d4d577
test: refactor http-end-throw-socket-handling
santigimeno Mar 12, 2016
4c73ab4
tools,doc: fix json for grouped optional params
firedfox Mar 31, 2016
292b1b7
build: fix make tar-headers for Linux
gibfahn Mar 31, 2016
6a197ec
doc: fix http response event, Agent#getName
mdouglass Apr 1, 2016
4fb4ba9
tools: remove disabling of already-disabled rule
Trott Apr 2, 2016
6d56009
doc: minor argument formatting in stream.markdown
jasnell Apr 2, 2016
2942cff
src: add missing 'inline' keywords
bnoordhuis Apr 5, 2016
29f821b
doc: clarifies http.serverResponse implementation
AllenSH12 Apr 6, 2016
d1fca27
deps: backport 125ac66 from v8 upstream
Apr 6, 2016
30f354f
doc: clarify fs.watch() and inodes on linux, os x
jorangreef Apr 7, 2016
df5ce6f
doc: native module reloading is not supported
bengl Apr 12, 2016
4ec9ae8
doc: explain differences in console.assert between node and browsers
jasnell Apr 12, 2016
433fb9a
deps: cherry-pick 1383d00 from v8 upstream
indutny Apr 13, 2016
3695690
doc: revert backported commits
May 2, 2016
fcc6a34
doc: get rid of sneaky hard tabs in CHANGELOG
May 6, 2016
29e25d8
doc: add steps for running addons + npm tests
Apr 15, 2016
855604c
deps: upgrade npm in LTS to 2.15.4
iarna May 9, 2016
a40730b
deps: backport IsValid changes from 4e8736d in V8
targos May 4, 2016
3c50350
deps: fix null pointer checks in v8
targos May 10, 2016
cc4c518
test: ensure test-npm-install uses correct node
May 9, 2016
7b60b8f
test: fix flakiness of stringbytes-external
ofrobots Apr 4, 2016
12a9699
buffer: fix needle length misestimation for UCS2
addaleax May 2, 2016
8b077fa
buffer: fix UCS2 indexOf for odd buffer length
addaleax May 2, 2016
2fac15b
src: fix FindFirstCharacter argument alignment
addaleax May 3, 2016
126fdc3
doc: fix issues related to page scrolling
silverwind May 11, 2016
0dc875e
deps: upgrade npm in LTS to 2.15.5
iarna May 13, 2016
9a8b531
http: unref socket timer on parser execute
indutny Apr 19, 2016
840c094
doc: update openssl.org hash links
silverwind May 17, 2016
0b376cb
test: fix pummel test failures
Trott Apr 2, 2016
3a67a05
test: enforce strict mode for test-domain-crypto
Trott Apr 4, 2016
28040cc
test: refactor test-file-write-stream3
Trott Apr 5, 2016
59814ac
doc: describe child.kill() pitfalls on linux
eljefedelrodeodeljefe Apr 5, 2016
25d4b5b
test: move some test from sequential to parallel
santigimeno Apr 5, 2016
68c7de4
tools: remove simplejson dependency
thefourtheye Apr 7, 2016
a865975
test: fix flaky test-http-client-abort
Trott Apr 8, 2016
1aa6c5b
tools: update ESLint to 2.7.0
silverwind Apr 9, 2016
a97a6a9
test: fix issues for ESLint 2.7.0
silverwind Apr 9, 2016
69dcbb6
test: fix flaky test-child-process-fork-net
Trott Apr 9, 2016
37cc249
test: fix test-net-settimeout flakiness
santigimeno Apr 12, 2016
d069f2d
doc: add full example for zlib.flush()
addaleax Apr 19, 2016
7160229
doc: note that zlib.flush acts after pending writes
addaleax Apr 12, 2016
0f9405d
test: move more tests from sequential to parallel
santigimeno Apr 9, 2016
b872fea
doc: replace functions with arrow functions
hiroppy Apr 14, 2016
9222689
test,vm: enable strict mode for vm tests
Trott Apr 15, 2016
5002a71
test: assert - fixed error messages to match the tests
suryagh Apr 16, 2016
24ac16f
test: fix flaky test-http-set-timeout-server
santigimeno Apr 15, 2016
c76f214
test,tools: enable linting for undefined vars
Trott Apr 18, 2016
6ad8591
child_process: add nullptr checks after allocs
addaleax Apr 18, 2016
8fa2029
tools: lint rule for assert.fail()
Trott Apr 18, 2016
b8c9d6b
tools: enable linting for v8_prof_processor.js
Trott Apr 18, 2016
48684af
zlib: fix use after null when calling .close
lightsofapollo Mar 31, 2016
f60ba54
test: add zlib close-after-error regression test
addaleax Apr 18, 2016
620a261
http: disallow sending obviously invalid status codes
mscdex Apr 20, 2016
06e5faf
test: add tests for console.assert
evanlucas Apr 20, 2016
333369e
test: increase the platform timeout for AIX
mhdawson Apr 21, 2016
773ea20
test: include component in tap output
bnoordhuis May 9, 2016
50f02bd
doc: update vm.runInDebugContext() example
bnoordhuis May 14, 2016
b6fc153
contextify: cleanup weak ref for global proxy
ofrobots Feb 23, 2016
9e6d817
contextify: cleanup weak ref for sandbox
ofrobots Feb 23, 2016
8ebdcd6
contextify: replace deprecated SetWeak usage
ofrobots Feb 23, 2016
9ddb44b
contextify: cache sandbox and context in locals
ofrobots Feb 24, 2016
823f726
contextify: tie lifetimes of context & sandbox
ofrobots Mar 18, 2016
f8144e4
test: add logging for test-debug-port-cluster
Trott May 15, 2016
49a5941
test: fix test-debug-port-cluster flakiness
Trott May 16, 2016
6330f48
2016-05-24, Version 4.4.5 'Argon' (LTS)
May 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src,tools: remove null sentinel from source array
PR-URL: #5418
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
bnoordhuis authored and Myles Borins committed May 18, 2016
commit e0eebf412ee65cd1114b03c959565dd0759b4a29
15 changes: 5 additions & 10 deletions src/node_javascript.cc
Original file line number Diff line number Diff line change
@@ -4,11 +4,6 @@
#include "env.h"
#include "env-inl.h"

#include <string.h>
#if !defined(_MSC_VER)
#include <strings.h>
#endif

namespace node {

using v8::HandleScope;
@@ -26,13 +21,13 @@ Local<String> MainSource(Environment* env) {
void DefineJavaScript(Environment* env, Local<Object> target) {
HandleScope scope(env->isolate());

for (int i = 0; natives[i].name; i++) {
if (natives[i].source != node_native) {
Local<String> name = String::NewFromUtf8(env->isolate(), natives[i].name);
for (auto native : natives) {
if (native.source != node_native) {
Local<String> name = String::NewFromUtf8(env->isolate(), native.name);
Local<String> source =
String::NewFromUtf8(
env->isolate(), reinterpret_cast<const char*>(natives[i].source),
NewStringType::kNormal, natives[i].source_len).ToLocalChecked();
env->isolate(), reinterpret_cast<const char*>(native.source),
NewStringType::kNormal, native.source_len).ToLocalChecked();
target->Set(name, source);
}
}
8 changes: 1 addition & 7 deletions tools/js2c.py
Original file line number Diff line number Diff line change
@@ -207,13 +207,7 @@ def ReadMacros(lines):
size_t source_len;
};
static const struct _native natives[] = {
%(native_lines)s\
{ NULL, NULL, 0 } /* sentinel */
};
static const struct _native natives[] = { %(native_lines)s };
}
#endif