mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
parent
9705efd419
commit
46245b830a
18 changed files with 29 additions and 175 deletions
|
@ -30,7 +30,6 @@
|
|||
Symbol,
|
||||
SymbolFor,
|
||||
TypedArrayPrototypeSet,
|
||||
SymbolToStringTag,
|
||||
TypeError,
|
||||
Uint8Array,
|
||||
} = window.__bootstrap.primordials;
|
||||
|
@ -359,10 +358,6 @@
|
|||
return bytes.buffer;
|
||||
}
|
||||
|
||||
get [SymbolToStringTag]() {
|
||||
return "Blob";
|
||||
}
|
||||
|
||||
[SymbolFor("Deno.customInspect")](inspect) {
|
||||
return inspect(consoleInternal.createFilteredInspectProxy({
|
||||
object: this,
|
||||
|
@ -472,10 +467,6 @@
|
|||
webidl.assertBranded(this, File);
|
||||
return this[_LastModified];
|
||||
}
|
||||
|
||||
get [SymbolToStringTag]() {
|
||||
return "File";
|
||||
}
|
||||
}
|
||||
|
||||
webidl.configurePrototype(File);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue