diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-09-05 00:18:58 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-09-05 18:29:02 +0800 |
commit | 5149aefd856042c70ca5034adad0bcf7def67e37 (patch) | |
tree | 6001510a9952872be2607a4251fdd9d94f758692 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 39bd45529d6ef3eea8e0eeef77d0294e0db1b02c (diff) | |
download | servo-5149aefd856042c70ca5034adad0bcf7def67e37.tar.gz servo-5149aefd856042c70ca5034adad0bcf7def67e37.zip |
codegen: throw type error when encountering an unknown argument
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 4a8cc573416..46b48885c4b 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -492,7 +492,7 @@ class CGMethodCall(CGThing): else: # Just throw; we have no idea what we're supposed to # do with this. - caseBody.append(CGGeneric("throw_internal_error(*cx, \"Could not convert JavaScript argument\");\n" + caseBody.append(CGGeneric("throw_type_error(*cx, \"Could not convert JavaScript argument\");\n" "return false;")) argCountCases.append(CGCase(str(argCount), |