mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 23:41:24 +00:00
Merge pull request #914 from alexcrichton/rename-polyfill
Rename `polyfill` to `vendor_prefix`
This commit is contained in:
@ -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()));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user