aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2019-09-05 00:18:58 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2019-09-05 18:29:02 +0800
commit5149aefd856042c70ca5034adad0bcf7def67e37 (patch)
tree6001510a9952872be2607a4251fdd9d94f758692
parent39bd45529d6ef3eea8e0eeef77d0294e0db1b02c (diff)
downloadservo-5149aefd856042c70ca5034adad0bcf7def67e37.tar.gz
servo-5149aefd856042c70ca5034adad0bcf7def67e37.zip
codegen: throw type error when encountering an unknown argument
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
-rw-r--r--tests/wpt/metadata/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter.html.ini7
2 files changed, 7 insertions, 2 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),
diff --git a/tests/wpt/metadata/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter.html.ini b/tests/wpt/metadata/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter.html.ini
index 2cca34ade59..ffe829f89f6 100644
--- a/tests/wpt/metadata/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter.html.ini
+++ b/tests/wpt/metadata/webaudio/the-audio-api/the-iirfilternode-interface/iirfilter.html.ini
@@ -1,2 +1,7 @@
[iirfilter.html]
- expected: CRASH
+ expected: ERROR
+ [X createIIRFilter with unnormalized coefficients incorrectly threw TypeError: \"context.createIIRFilter is not a function\".]
+ expected: FAIL
+
+ [X createIIRFilter with normalized coefficients incorrectly threw TypeError: \"context.createIIRFilter is not a function\".]
+ expected: FAIL