Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 7cb5f74274a403de66c2c30ef99d5ed03872661d..5b128c010163a02ca74686e863312f9b46432755 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -90,15 +90,15 @@ class PerIsolateData { |
public: |
explicit PerIsolateData(Isolate* isolate) : isolate_(isolate), realms_(NULL) { |
HandleScope scope(isolate); |
- isolate->SetData(this); |
+ isolate->SetData(0, this); |
} |
~PerIsolateData() { |
- isolate_->SetData(NULL); // Not really needed, just to be sure... |
+ isolate_->SetData(0, NULL); // Not really needed, just to be sure... |
} |
inline static PerIsolateData* Get(Isolate* isolate) { |
- return reinterpret_cast<PerIsolateData*>(isolate->GetData()); |
+ return reinterpret_cast<PerIsolateData*>(isolate->GetData(0)); |
} |
class RealmScope { |