GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge v0.12 by bnoordhuis · Pull Request #236 · nodejs/node

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Jan 5, 2015

Copy link
Copy Markdown
Member

R=@chrisdickinson or @indutny or @piscisaureus or @trevnorris

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
indutny and others added 30 commits October 6, 2014 18:45
@indutny
tls_wrap: ignore ZERO_RETURN after close_notify
da188d1
Do not call SSL_read() and ignore ZERO_RETURN if the connection was
shutdown and there could not be any reads.

Reviewed-By: Ben Noordhuis <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8519
@indutny
Merge remote-tracking branch 'joyent/v0.12'
4412a71
@refack @indutny
deps: update v8 to 3.28.73
939278a
Reviewed-By: Fedor Indutny <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@indutny
deps: apply floating irhydra patch to v8
0e13205
Reviewed-By: Fedor Indutny <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@refack @indutny
deps: fix postmortem-metadata generator in v8
d71dd63
Reviewed-By: Fedor Indutny <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@indutny
deps: re-implement debugger-agent
6a610a0
Reviewed-By: Trevor Norris <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@indutny
cluster: do not signal children in debug mode
3821863
Do not send signal to children if they are already in debug mode.
Node.js on Windows does not register signal handler, and thus calling
`process._debugProcess()` will throw an error.

Reviewed-By: Trevor Norris <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@indutny
src, test: fixup after v8 update
383b0c0
Because of behavior change of some V8 APIs (they mostly became more
    strict), following modules needed to be fixed:

* crypto: duplicate prototype methods are not allowed anymore
* contextify: some TryCatch trickery, the binding was using it
incorrectly
* util: maximum call stack error is now crashing in a different place

Reviewed-By: Trevor Norris <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@indutny
test: fix debug-signal-cluster after da update
25e8ade
The cluster children are hitting breakpoint at `cluster.onread` and
hanging on a Semaphore wait now. This prevents them from disconnecting
gracefully. Considering that the test is checking different thing, the
cluster children needs to be force killed from the grand parent process.

Reviewed-By: Trevor Norris <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
Julien Gilli @indutny
build: fix build for SmartOS
011319e
This change in V8: https://code.google.com/p/v8/source/detail?r=22210
has introduced a method named OS::GetCurrentThreadId which fails to
compile on OSes where a "gettid" syscall does not exist.
This build issue has been fixed upstream by another change:
https://code.google.com/p/v8/source/detail?r=23459. This commit
integrates this fix. It's still not clear if this is good enough for the
long term, see https://code.google.com/p/v8/issues/detail?id=3620 for
more information.

The other build issue was due to the fact that alloca.h is not included
by other system includes on SmartOS, which is assumed by V8.

PR-URL: nodejs/node-v0.x-archive#8534
Reviewed-By: Fedor Indutny <[email protected]>
@mingwandroid @indutny
src: fixes for win32
6f94b3d
Update following macros:

* NODE_NET_SOCKET_{READ,WRITE}() - they both take 4 arguments,
  not 2

* NODE_COUNT_GC_PERCENTTIME() - it takes a single argument.

Use INT_PTR instead of INT32 in pointer casts in win32_etw provider.

PR-URL: nodejs/node-v0.x-archive#8294
Reviewed-By: Fedor Indutny <[email protected]>
@mingwandroid @indutny
build: determine and use EXEEXT on windows
eccb101
PR-URL: nodejs/node-v0.x-archive#8294
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis
tools: update certdata.txt
a7d96d4
This is the latest certdata.txt from [0], last updated on 2014-10-08.

[0] https://hg.mozilla.org/mozilla-central/raw-file/f0bb13ef0ee4/security/nss/lib/ckfw/builtins/certdata.txt

PR-URL: node-forward/node#7
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Trevor Norris <[email protected]>
@bnoordhuis
crypto: update root certificates
6d2ac2b
Update the list of root certificates in src/node_root_certs.h with
tools/mk-ca-bundle.pl.

PR-URL: node-forward/node#7
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Trevor Norris <[email protected]>
@bnoordhuis
freebsd,linux,sunos: make stack non-executable
4fae235
Link with -z,noexecstack to make stack memory non-executable.  Makes
shellcode injection through buffer overflows more difficult.

Fixes: nodejs/node-v0.x-archive#7542
PR-URL: node-forward/node#8
Reviewed-By: Trevor Norris <[email protected]>
@indutny
deps: update v8 to 3.29.93.1
6bcea4f
@indutny
v8_platform: provide default v8::Platform impl
50839a0
Provide default Platform implementation for v8's purposes.
@indutny
gyp: build with gnu++0x for the sake of new v8
e43c109
The new v8 doesn't build on non gnu++0x, set it to a proper value for
all systems.
@indutny
test: fix error messages after v8 upgrade
a48583e
@refack @indutny
deps: fix postmortem-metadata generator in v8
b2e5199
Reviewed-By: Fedor Indutny <[email protected]>
PR-URL: nodejs/node-v0.x-archive#8476
@bnoordhuis @indutny
src: remove unnecessary HandleScopes
97585b0
API callback functions don't need to create a v8::HandleScope instance
because V8 already creates one in the JS->C++ adapter frame.

PR-URL: node-forward/node#16
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis @indutny
src: fix up imports
75a461d
Make tools/check-imports.sh stop complaining, remove or reorder 'using'
statements.

PR-URL: node-forward/node#16
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis @indutny
src: replace assert() with CHECK()
5fdff38
Mechanically replace assert() statements with UNREACHABLE(), CHECK(),
or CHECK_{EQ,NE,LT,GT,LE,GE}() statements.

The exceptions are src/node.h and src/node_object_wrap.h because they
are public headers.

PR-URL: node-forward/node#16
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis @indutny
src: ignore risky env vars when setuid root
8f6c587
On POSIX platforms, check that the uid and gid match the euid and egid
respectively before looking up the environment variable.

Before this commit, an i18n-enabled suid node would cheerfully load
attacker-controlled ICU data through the NODE_ICU_DATA environment
variable.

This commit is not a complete fix.  For example, it's up for debate
what to do with the NODE_CHANNEL_FD environment variable.

PR-URL: node-forward/node#18
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis @indutny
src: remove unused MIN macro
1325335
Defined in src/node.cc but not actually in use; remove it.

PR-URL: node-forward/node#18
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis @indutny
src: remove unused Environment::GetCurrent() calls
b45d336
Remove a few Environment::GetCurrent() calls that g++ failed to detect
were not used for anything.  The return value was assigned to a local
variable but not used meaningfully.

PR-URL: node-forward/node#18
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis @indutny
src: attach env directly to api functions
d3c317e
Attach the per-context execution environment directly to API functions.
Rationale:

 * Gets node one step closer to multi-isolate readiness.

 * Avoids multi-context confusion, e.g. when the caller and callee live
   in different contexts.

 * Avoids expensive calls to pthread_getspecific() on platforms where
   V8 does not know how to use the thread-local storage directly.
   (Linux, the BSDs.)

PR-URL: node-forward/node#18
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis
test: fix non-determinism in test-crypto-domains
1f11983
The test implicitly assumed that crypto operations complete in the same
order as they are started but, because they go round-trip through the
thread pool, there is no such guarantee.  Enforce proper sequencing.

Fixes node-forward/node#22.

PR-URL: node-forward/node#23
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis
deps: fix v8 x32 build
7af8870
Fix double definition errors in the libv8_base.a library target by
compiling out stub functions when building for x32.

This fix is incomplete because, although V8 now builds, it makes a
number of bad assumptions about the size of stack slots, see
https://code.google.com/p/v8/issues/detail?id=3630.

PR-URL: node-forward/node#24
Reviewed-By: Fedor Indutny <[email protected]>
@bnoordhuis
build: add x32 support
a08f8e2
This commit adds preliminary x32 support.  Configure with:

    $ ./configure --dest-cpu=x32

PR-URL: node-forward/node#24
Reviewed-By: Fedor Indutny <[email protected]>
bnoordhuis and others added 20 commits December 20, 2014 02:39
@bnoordhuis
lib: micro-optimize EventEmitter#removeListener()
d3f8db1
Replace the call to Array#splice() with a faster open-coded version
that creates less garbage.

Add a new benchmark to prove it.  With the change applied, it scores
a whopping 40% higher.

PR-URL: nodejs#185
Reviewed-By: Chris Dickinson <[email protected]>
@bnoordhuis
benchmark: rename url.parse() benchmark
6b2af5f
Rename the url.parse() benchmark from url.js to url-parse.js.
A follow-up commit is going to add another one for url.resolve().

PR-URL: nodejs#184
Reviewed-By: Chris Dickinson <[email protected]>
@bnoordhuis
lib: micro-optimize url.resolve()
aff56cd
Replace the call to Array#splice() with a faster open-coded version
that creates less garbage.

Add a new benchmark to prove it.  With the change applied, it scores
about 5% higher and that is nothing to sneeze at.

PR-URL: nodejs#184
Reviewed-By: Chris Dickinson <[email protected]>
@seishun @bnoordhuis
configure: remove workarounds for GCC < 4.8
ef10827
They can't compile io.js anyway.

PR-URL: nodejs#187
Reviewed-By: Ben Noordhuis <[email protected]>
@teppeis @bnoordhuis
assert: fix deepEqual regression
00a7456
Change of Object.keys in ES6 breaks assert.deepEqual about primitive
values.

V8: https://code.google.com/p/v8/issues/detail?id=3443

Previously deepEqual depends on Object.key that throws an error for
a primitive value, but now Object.key does not throw.

PR-URL: nodejs#193
Reviewed-By: Ben Noordhuis <[email protected]>
Mark Stosberg @bnoordhuis
doc: fix v8 doc headings so 'make doc' passes
0a8e987
Previously the code that builds the Table of Contents threw
an exception because of jump from an H1 heading directly to an H3
heading.

By changing the H3 heading to an H2, 'make doc' works again. This is
also consistent with other docs like console.markdown which use
H2 for method call documentation.

PR-URL: nodejs#203
Reviewed-By: Ben Noordhuis <[email protected]>
Mark Stosberg @bnoordhuis
doc: document time() and timeEnd() relationship
6af9483
`console.time()` and `console.timeEnd()` are very closely related. It's
useful to reference them both from each other.

Previously, console.time() did not mention that it needed to be paired
with a call to console.timeEnd() to be useful, and timeEnd() also failed
to mention that console.time() needed to be called first.

References in both directions have been added.

PR-URL: nodejs#198
Reviewed-By: Ben Noordhuis <[email protected]>
Rudi Cilibrasi @bnoordhuis
src: remove cpplint error using NOLINT directive
c77a494
PR-URL: nodejs#202
Reviewed-By: Ben Noordhuis <[email protected]>
@seishun @bnoordhuis
configure: remove compiler detection
0f3d7e6
The GCC version is no longer relevant since only 4.8 and newer are
supported. It's probably safe to assume clang on mac since V8 does
so too.

PR-URL: nodejs#205
Reviewed-By: Ben Noordhuis <[email protected]>
@brendanashworth @bnoordhuis
dgram: change Socket.bind() to return itself
3e0057d
This commit changes `lib/dgram.js` Sockets to, when
they are bound to a port / IP, return themselves. This
is done in order to allow chaining of methods and be
in accordance with the `lib/net.js` library.

PR-URL: nodejs#214
Reviewed-By: Ben Noordhuis <[email protected]>
@brendanashworth @bnoordhuis
dgram: changes Socket.close() to return itself
4444b7b
This commit adds a return statement to the dgram.Socket.close()
function that returns itself after it finishes. This follows along
the functionality of the more popular and, dare I say, father-library
`lib/net.js`.

PR-URL: nodejs#214
Reviewed-By: Ben Noordhuis <[email protected]>
@timruffles @bnoordhuis
doc: be specific about the unit of maxBuffer
6f49c24
The maxBuffer option was not self-documenting, so document the unit and
its effect.

PR-URL: nodejs#209
Reviewed-By: Ben Noordhuis <[email protected]>
@sam-github @bnoordhuis
dgram: make 'close' event async
7349d7f
Emit the close event asynchronously, after the close, as it is with the
net/http close events.

PR-URL: nodejs#217
Reviewed-By: Ben Noordhuis <[email protected]>
@sam-github @bnoordhuis
dgram: close() should accept a callback
63005ee
Like net, http, and https server.close, and socket.end(), etc.

PR-URL: nodejs#217
Reviewed-By: Ben Noordhuis <[email protected]>
@sam-github @bnoordhuis
doc: add tls server.close() callback docs
b42c085
Also, tests to confirm its existence.

PR-URL: nodejs#217
Reviewed-By: Ben Noordhuis <[email protected]>
Aleksey Smolenchuk @bnoordhuis
lib: introduce process module
d8586ea
This makes require('process') always return a reference to the global
process object.

PR-URL: nodejs#206
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis
doc: util: document --trace-deprecation
8b04161
Document the --trace-deprecation flag and the `process` properties that
affect util.deprecate().

Fixes: nodejs#190
PR-URL: nodejs#191
Reviewed-By: Jonathan Ong <[email protected]>
@rvagg @piscisaureus
doc: added TC meeting minutes 2014-12-17
d5c7a97
Closes nodejs#163

PR-URL: nodejs#178
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Bert Belder <[email protected]>
@rvagg
doc: added TC meeting minutes 2014-12-30
261706e
closes nodejs#211

PR-URL: nodejs#229
Reviewed-By: Colin Ihrig <[email protected]>
@bnoordhuis
Merge remote-tracking branch 'joyent/v0.12' into v1.x
94e1475
I was originally going to do this after the v0.11.15 release, but as
that release is three weeks overdue now, I decided not to wait any
longer; we don't want the delta to get too big.

Conflicts:
	lib/net.js
	test/simple/simple.status

PR-URL: nodejs#236
Reviewed-By: Bert Belder <[email protected]>
Reviewed-By: Fedor Indutny <[email protected]>
@piscisaureus

piscisaureus commented Jan 5, 2015

Copy link
Copy Markdown
Contributor

All merged patches are properly reviewed by TC members (except 372a2f5), so a rubberstamp LGTM from me.

One thing I'm incredibly unhappy about is the on-demand download of ICU which is now always needed to build node. But that's out of scope for this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@piscisaureus

piscisaureus commented Jan 5, 2015

Copy link
Copy Markdown
Contributor

What I would do though is upgrade libuv first to the latest stable and do the merge after that (with -X ours for the libuv folder).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Jan 5, 2015

Copy link
Copy Markdown
Member Author

What I would do though is upgrade libuv first to the latest stable and do the merge after that

Can you explain why? joyent/node and io.js are currently at the same version, v1.0.2.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@indutny

indutny commented Jan 5, 2015

Copy link
Copy Markdown
Member

LGTM, please land.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis
bnoordhuis force-pushed the merge-v0.12 branch from 9fdb383 to 94e1475 Compare January 5, 2015 19:05
@bnoordhuis
bnoordhuis merged commit 94e1475 into nodejs:v1.x Jan 5, 2015
@bnoordhuis
bnoordhuis deleted the merge-v0.12 branch January 5, 2015 19:05
@bnoordhuis

bnoordhuis commented Jan 5, 2015

Copy link
Copy Markdown
Member Author

GH gets terribly confused when you amend merge commit logs but at any rate, the merge landed in commit 94e1475.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@piscisaureus

piscisaureus commented Jan 5, 2015

Copy link
Copy Markdown
Contributor

Can you explain why? joyent/node and io.js are currently at the same version, v1.0.2.

It used to be at 1.0.1 in io.js but it no longer matters.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bakkot pushed a commit to bakkot/node that referenced this pull request May 11, 2026
@backes pthier
[node] Avoid deprecated FixedArray::Get (nodejs#236)
8674fab
Use the method without context parameter; the old API is deprecated, see
https://crrev.com/c/7141498.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

19 participants

@bnoordhuis @piscisaureus @indutny @aredridel @mscdex @algesten @19h @jonathanong @Fishrock123 @princejwesley @cjihrig @aks- @refack @mingwandroid @rvagg @seishun @luisa-reis @calvinmetcalf @jcowgill
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.