diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-10-07 11:53:03 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-10-07 11:53:45 +0200 |
commit | 1f31a7dbfe792fa6eee8a9cdcdfd662aad5cde06 (patch) | |
tree | c83b724056517e4bf71f203b74ad1d832d0ca7f0 /deps/v8/src/top.cc | |
parent | 1a2762b78e496dac4cc9fd0fb4ffb1d4f036692b (diff) | |
download | node-new-1f31a7dbfe792fa6eee8a9cdcdfd662aad5cde06.tar.gz |
Upgrade v8 to 1.3.14
Diffstat (limited to 'deps/v8/src/top.cc')
-rw-r--r-- | deps/v8/src/top.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/top.cc b/deps/v8/src/top.cc index 039c29268f..aa7788e3b2 100644 --- a/deps/v8/src/top.cc +++ b/deps/v8/src/top.cc @@ -98,7 +98,8 @@ void Top::InitializeThreadLocal() { thread_local_.stack_is_cooked_ = false; thread_local_.try_catch_handler_ = NULL; thread_local_.context_ = NULL; - thread_local_.thread_id_ = ThreadManager::kInvalidId; + int id = ThreadManager::CurrentId(); + thread_local_.thread_id_ = (id == 0) ? ThreadManager::kInvalidId : id; thread_local_.external_caught_exception_ = false; thread_local_.failed_access_check_callback_ = NULL; clear_pending_exception(); |