mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
fix(ext/web): handle no arguments in atob (#13341)
This commit is contained in:
parent
9f4e1e0d34
commit
f3ece7457a
1 changed files with 3 additions and 1 deletions
|
@ -29,8 +29,10 @@
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
function atob(data) {
|
function atob(data) {
|
||||||
|
const prefix = "Failed to execute 'atob'";
|
||||||
|
webidl.requiredArguments(arguments.length, 1, { prefix });
|
||||||
data = webidl.converters.DOMString(data, {
|
data = webidl.converters.DOMString(data, {
|
||||||
prefix: "Failed to execute 'atob'",
|
prefix,
|
||||||
context: "Argument 1",
|
context: "Argument 1",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue