summaryrefslogtreecommitdiff
path: root/deps/v8/src/extensions/statistics-extension.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/extensions/statistics-extension.cc')
-rw-r--r--deps/v8/src/extensions/statistics-extension.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/extensions/statistics-extension.cc b/deps/v8/src/extensions/statistics-extension.cc
index 32bc07de8b..651d99d452 100644
--- a/deps/v8/src/extensions/statistics-extension.cc
+++ b/deps/v8/src/extensions/statistics-extension.cc
@@ -60,7 +60,7 @@ static void AddNumber(v8::Local<v8::Object> object,
void StatisticsExtension::GetCounters(
const v8::FunctionCallbackInfo<v8::Value>& args) {
- Isolate* isolate = Isolate::Current();
+ Isolate* isolate = reinterpret_cast<Isolate*>(args.GetIsolate());
Heap* heap = isolate->heap();
if (args.Length() > 0) { // GC if first argument evaluates to true.