Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Unified Diff: sky/engine/tonic/dart_wrappable.cc

Issue 924203002: Morph the APIs for Node, ParentNode, and Element closer to the specs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/tonic/dart_wrappable.cc
diff --git a/sky/engine/tonic/dart_wrappable.cc b/sky/engine/tonic/dart_wrappable.cc
index 6c7e3a15267fff3b4a7c22cbbdb5dafe79cffc24..1bf69d4cf5b023ba6101340539b1f5c3b40edcde 100644
--- a/sky/engine/tonic/dart_wrappable.cc
+++ b/sky/engine/tonic/dart_wrappable.cc
@@ -50,9 +50,9 @@ void DartWrappable::FinalizeDartWrapper(void* isolate_callback_data,
}
DartWrappable* DartConverterWrappable::FromDart(Dart_Handle handle) {
- intptr_t* peer = 0;
+ intptr_t peer = 0;
Dart_Handle result =
- Dart_GetNativeInstanceField(handle, DartWrappable::kPeerIndex, peer);
+ Dart_GetNativeInstanceField(handle, DartWrappable::kPeerIndex, &peer);
if (Dart_IsError(result))
return nullptr;
return reinterpret_cast<DartWrappable*>(peer);

Powered by Google App Engine
This is Rietveld 408576698