diff --git a/ext/web/05_base64.js b/ext/web/05_base64.js index e0c2a36f8e..7f4b607c9b 100644 --- a/ext/web/05_base64.js +++ b/ext/web/05_base64.js @@ -29,8 +29,10 @@ * @returns {string} */ function atob(data) { + const prefix = "Failed to execute 'atob'"; + webidl.requiredArguments(arguments.length, 1, { prefix }); data = webidl.converters.DOMString(data, { - prefix: "Failed to execute 'atob'", + prefix, context: "Argument 1", });