var timers = require('timers');
var N = 100000;
var i = 0;
while (i < N) {
var someObject = { _onTimeout: function () { } };
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Statistical profiling result from v8.log, (10135 ticks, 68 unaccounted, 0 excluded). | |
[Unknown]: | |
ticks total nonlib name | |
68 0.7% | |
[Shared libraries]: | |
ticks total nonlib name | |
4426 43.7% 0.0% /Users/JulienGilli/dev/node/./out/Release/node | |
2247 22.2% 0.0% /usr/lib/system/libsystem_kernel.dylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
#set -x | |
TESTS_DIR="$(pwd)/app-tests" | |
NODE_BIN=${NODE_BIN:-$(pwd)/out/Release/node} | |
t_plan() { | |
printf "1..%d\n" "$1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/req.ip.js b/test/req.ip.js | |
index f24401c..a17b924 100644 | |
--- a/test/req.ip.js | |
+++ b/test/req.ip.js | |
@@ -60,11 +60,14 @@ describe('req', function(){ | |
res.send(req.ip); | |
}); | |
- request(app) | |
- .get('/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/leak2.js b/leak2.js | |
index e4b6a47..7fe4c18 100644 | |
--- a/leak2.js | |
+++ b/leak2.js | |
@@ -7,15 +7,16 @@ result = null; | |
console.log("STARTING"); | |
process.nextTick(function run() { | |
- var script = vm.createScript('setInterval(function() {}, 0);', 'test.js'); | |
+ var script = vm.createScript('var myInterval = setInterval(function() {}, 0); clearInterval(myInterval); ', 'test.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) res .download(path, fn) should invoke the callback: | |
Error: Request aborted | |
at Immediate._onImmediate (c:\Users\jgilli\dev\node-0-11-14-test\express\l | |
ib\response.js:941:17) | |
at processImmediate [as _immediateCallback] (timers.js:374:17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ node-debug-school git:(master) ✗ ls /cores | |
➜ node-debug-school git:(master) ✗ ulimit -c 0; node --abort-on-uncaught-exception -e 'undef()' | |
Uncaught ReferenceError: undef is not defined | |
FROM | |
[eval]:1:1 | |
Object.<anonymous> ([eval]-wrapper:6:22) | |
Module._compile (module.js:456:26) | |
evalScript (node.js:536:25) | |
startup (node.js:80:7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/uv.h b/include/uv.h | |
index 601a7f1..86516a9 100644 | |
--- a/include/uv.h | |
+++ b/include/uv.h | |
@@ -1045,6 +1045,7 @@ typedef enum { | |
struct uv_dir_s { | |
UV_HANDLE_FIELDS | |
+ int dir_flags; | |
UV_DIR_PRIVATE_FIELDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tls = require('tls'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var fork = require('child_process').fork; | |
var assert = require('assert'); | |
var constants = require('constants'); | |
var common = require('../common'); | |
if (process.argv[2] === 'child') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/crypto.js b/lib/crypto.js | |
index f88c55d..dedecc4 100644 | |
--- a/lib/crypto.js | |
+++ b/lib/crypto.js | |
@@ -61,6 +61,32 @@ var StringDecoder = require('string_decoder').StringDecoder; | |
var CONTEXT_DEFAULT_OPTIONS = undefined; | |
+function getSecureOptions(secureProtocol, secureOptions) { | |
+ if (CONTEXT_DEFAULT_OPTIONS === undefined) { |