Merge pull request #914 from alexcrichton/rename-polyfill

Rename `polyfill` to `vendor_prefix`
This commit is contained in:
Alex Crichton
2018-10-01 14:47:07 -07:00
committed by GitHub
14 changed files with 112 additions and 100 deletions

View File

@ -500,13 +500,13 @@ impl<'src> FirstPassRecord<'src> {
doc_comment: None,
instanceof_shim: format!("__widl_instanceof_{}", name),
extends: Vec::new(),
polyfills: Vec::new(),
vendor_prefixes: Vec::new(),
};
// whitelist a few names that have known polyfills
match name {
"AudioContext" => {
import_type.polyfills.push(Ident::new("webkitAudioContext", Span::call_site()));
import_type.vendor_prefixes.push(Ident::new("webkit", Span::call_site()));
}
_ => {}
}