diff --git a/src/env-inl.h b/src/env-inl.h index f3ca8882b0..b248fd8a3e 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -283,10 +283,8 @@ template inline Environment* Environment::GetCurrent( const v8::PropertyCallbackInfo& info) { 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::Local data = info.Data(); - return static_cast(data.As()->Value()); + return static_cast( + info.Data().template As()->Value()); } inline Environment::Environment(IsolateData* isolate_data,