Update from https://crrev.com/308996
Add patch for V8 build rules
R=qsr@chromium.org
Review URL: https://codereview.chromium.org/816543004
diff --git a/gin/function_template.h b/gin/function_template.h
index 2b66b66..dff1bb2 100644
--- a/gin/function_template.h
+++ b/gin/function_template.h
@@ -131,8 +131,12 @@
ArgumentHolder(Arguments* args, int create_flags)
: ok(GetNextArgument(args, create_flags, index == 0, &value)) {
- if (!ok)
+ if (!ok) {
+ // Ideally we would include the expected c++ type in the error
+ // message which we can access via typeid(ArgType).name()
+ // however we compile with no-rtti, which disables typeid.
args->ThrowError();
+ }
}
};