bindings: IDL 'object' type should be validated in converting into native object |
||
Issue descriptionFor 'object' type objects in IDL, we generate following code in our IDL compiler; ScriptValue value = ScriptValue(ScriptState::Current(info.GetIsolate()), info[i]); It means we don't validate if the V8 value is Object or not. We should check it at binding layer and throw an error if the argument (info[i]) is not an Object.
,
Aug 23
,
Aug 24
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8698158ab1b36d545956fac3024f5f82a6470042 commit 8698158ab1b36d545956fac3024f5f82a6470042 Author: Hitoshi Yoshida <peria@chromium.org> Date: Fri Aug 24 05:10:47 2018 bindings: Change order of arguments in code generater test This is a follow-up CL for http://crrev.com/585412 We can't find a specific description in spec, but it is natural to put optional arguments after all non-optional arguments. This changes the order of arguments in a code generator test case from: method(arg1, optional arg2, arg3) to : method(arg1, arg2, optional arg3) Bug: 876608 Change-Id: Ief33bbdeef7fefc832a03d78b5ca28ab68aa63f2 Reviewed-on: https://chromium-review.googlesource.com/1187847 Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Reviewed-by: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#585690} [modify] https://crrev.com/8698158ab1b36d545956fac3024f5f82a6470042/third_party/blink/renderer/bindings/tests/idls/core/test_interface.idl [modify] https://crrev.com/8698158ab1b36d545956fac3024f5f82a6470042/third_party/blink/renderer/bindings/tests/results/core/v8_test_interface.cc |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Aug 23