diff --git a/src/env-inl.h b/src/env-inl.h index 561c76257e09bc..f7d9ff626f598a 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,