0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix: typo in validator for TextEncoder#encode (#10862)

This commit is contained in:
Luca Casonato 2021-06-06 01:38:39 +02:00 committed by GitHub
parent c73ef5fa14
commit fdf068a607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@
const prefix = "Failed to execute 'encode' on 'TextEncoder'";
input = webidl.converters.USVString(input, {
prefix,
context: "Argument 2",
context: "Argument 1",
});
return core.encode(input);
}