diff options
Diffstat (limited to 'src/env-inl.h')
-rw-r--r-- | src/env-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env-inl.h b/src/env-inl.h index cf7304c98d..e160fe27d8 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -272,14 +272,14 @@ inline Environment* Environment::GetCurrent(v8::Local<v8::Context> context) { inline Environment* Environment::GetCurrent( const v8::FunctionCallbackInfo<v8::Value>& info) { - ASSERT(info.Data()->IsExternal()); + CHECK(info.Data()->IsExternal()); return static_cast<Environment*>(info.Data().As<v8::External>()->Value()); } template <typename T> inline Environment* Environment::GetCurrent( const v8::PropertyCallbackInfo<T>& info) { - ASSERT(info.Data()->IsExternal()); + CHECK(info.Data()->IsExternal()); // XXX(bnoordhuis) Work around a g++ 4.9.2 template type inferrer bug // when the expression is written as info.Data().As<v8::External>(). v8::Local<v8::Value> data = info.Data(); |