From 9f5643f427dd507ebe696fb1550cedd4b5af3705 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 30 Jan 2010 23:22:34 -0800 Subject: [PATCH] Reorganize the start-up process - assign 'GLOBAL' (and now 'global') inside src/node.js - position for eventually allowing replacements to src/node.js for people like Kris Kowal who want the nice libev and libeio bindings but not necessarily node's choices of modules or promises. --- src/node.cc | 77 +++++++++++++++++++++++++++++++++++++------------------------ src/node.js | 9 ++++++-- 2 files changed, 54 insertions(+), 32 deletions(-) diff --git a/src/node.cc b/src/node.cc index 8796047..00d1c8c 100644 --- a/src/node.cc +++ b/src/node.cc @@ -198,7 +198,6 @@ ssize_t DecodeBytes(v8::Handle val, enum encoding encoding) { ssize_t DecodeWrite(char *buf, size_t buflen, v8::Handle val, enum encoding encoding) { - size_t i; HandleScope scope; // XXX @@ -366,18 +365,17 @@ static void ReportException(TryCatch *try_catch, bool show_line = false) { } // Executes a str within the current v8 context. -Handle ExecuteString(v8::Handle source, - v8::Handle filename) { +Local ExecuteString(Local source, Local filename) { HandleScope scope; TryCatch try_catch; - Handle