Index: mojo/edk/js/core.cc |
diff --git a/mojo/edk/js/core.cc b/mojo/edk/js/core.cc |
index 232f0e3755ec37c8a1db21b4e49104fb4712cb9f..5b766d4be94d885525274beaec1a65798efc10f1 100644 |
--- a/mojo/edk/js/core.cc |
+++ b/mojo/edk/js/core.cc |
@@ -57,7 +57,8 @@ gin::Dictionary CreateMessagePipe(const gin::Arguments& args) { |
options_value->IsUndefined()) { |
result = MojoCreateMessagePipe(NULL, &handle0, &handle1); |
} else if (options_value->IsObject()) { |
- gin::Dictionary options_dict(args.isolate(), options_value->ToObject()); |
+ gin::Dictionary options_dict(args.isolate(), |
+ options_value->ToObject(args.isolate())); |
MojoCreateMessagePipeOptions options; |
// For future struct_size, we can probably infer that from the presence of |
// properties in options_dict. For now, it's always 8. |
@@ -156,7 +157,8 @@ gin::Dictionary CreateDataPipe(const gin::Arguments& args) { |
options_value->IsUndefined()) { |
result = MojoCreateDataPipe(NULL, &producer_handle, &consumer_handle); |
} else if (options_value->IsObject()) { |
- gin::Dictionary options_dict(args.isolate(), options_value->ToObject()); |
+ gin::Dictionary options_dict(args.isolate(), |
+ options_value->ToObject(args.isolate())); |
MojoCreateDataPipeOptions options; |
// For future struct_size, we can probably infer that from the presence of |
// properties in options_dict. For now, it's always 16. |