Commit 701ac9be authored by Yuki Shiino's avatar Yuki Shiino Committed by Commit Bot

bind-gen: Fix NativeValueTraits<union types>

Adds missing ArgumentValue method to NVT<union types>.

Bug: 839389
Change-Id: I6a8c980eaba4df5ffe4901db6e25abfa6023a174
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2201797Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768773}
parent 80dc12c0
......@@ -1253,6 +1253,13 @@ struct NativeValueTraits<IDLUnionNotINT<T>> : public NativeValueTraitsBase<T> {
exception_state);
return impl;
}
static T ArgumentValue(v8::Isolate* isolate,
int argument_index,
v8::Local<v8::Value> value,
ExceptionState& exception_state) {
return NativeValue(isolate, value, exception_state);
}
};
template <typename T>
......@@ -1266,6 +1273,13 @@ struct NativeValueTraits<IDLUnionINT<T>> : public NativeValueTraitsBase<T> {
exception_state);
return impl;
}
static T ArgumentValue(v8::Isolate* isolate,
int argument_index,
v8::Local<v8::Value> value,
ExceptionState& exception_state) {
return NativeValue(isolate, value, exception_state);
}
};
template <typename T>
......@@ -1279,6 +1293,13 @@ struct NativeValueTraits<IDLNullable<IDLUnionNotINT<T>>>
return NativeValueTraits<IDLUnionNotINT<T>>::NativeValue(isolate, value,
exception_state);
}
static T ArgumentValue(v8::Isolate* isolate,
int argument_index,
v8::Local<v8::Value> value,
ExceptionState& exception_state) {
return NativeValue(isolate, value, exception_state);
}
};
// IDLNullable<IDLUnionINT<T>> must not be used.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment