diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-05-07 20:31:29 +0800 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2018-10-18 01:38:27 +0800 |
commit | 8b2892113693e6d2eddfc29dd49bbf7d54954912 (patch) | |
tree | 65a45e45c7c68d151128201f6e8216c9a5547158 /components/script | |
parent | 9a0404ac5fc1c463aa68bb0c68d709a61157c2bf (diff) | |
download | servo-8b2892113693e6d2eddfc29dd49bbf7d54954912.tar.gz servo-8b2892113693e6d2eddfc29dd49bbf7d54954912.zip |
Make expectionCode of Promise have newline character automatically
In the `fill` method, it will check if the exception code is empty
string or has newline character in the end of string or not. However, we
didn't do any change to exceptionCode when type is Promise. Thus, we add
the newline character to make it pass the checking in `fill` method.
See more detail from the log of IRC: https://mozilla.logbot.info/servo/20180501#c14692647
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 fd2df0799c6..c9271bb03dc 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -6207,7 +6207,7 @@ class CGDictionary(CGThing): descriptorProvider, isMember="Dictionary", defaultValue=member.defaultValue, - exceptionCode="return Err(());")) + exceptionCode="return Err(());\n")) for member in dictionary.members] def define(self): |