diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-09-05 13:39:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 13:39:52 -0400 |
commit | 8eddb60150286c318b79eb5df663aae23722eb24 (patch) | |
tree | 7c5bfbc856a0d3517b7f8f8c38e8a57a75861e6c /components/script | |
parent | f4fbf1b8a1edf1b6f4148e38bb9514207a068f16 (diff) | |
parent | 5149aefd856042c70ca5034adad0bcf7def67e37 (diff) | |
download | servo-8eddb60150286c318b79eb5df663aae23722eb24.tar.gz servo-8eddb60150286c318b79eb5df663aae23722eb24.zip |
Auto merge of #24137 - gterzian:fix_error_throwing_on_unknown_js_arg, r=jdm
Codegen: throw type error when encountering an unknown argument
<!-- Please describe your changes on the following line: -->
FIX #24130
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24137)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-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 d5b70f6c3d7..dece9a763d9 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), |