Index: third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html b/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html |
index caa185943c7ebd51c8706278290bcbc46f9644b2..ef0ad4075c8397ef8f2ca33a911a3b1c463abf8c 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html |
@@ -45,7 +45,7 @@ var badStrings = [ |
badStrings.forEach(function(t) { |
test(function() { |
- var encoded = new TextEncoder('utf-8').encode(t.input); |
+ var encoded = new TextEncoder().encode(t.input); |
assert_array_equals([].slice.call(encoded), t.expected); |
assert_equals(new TextDecoder('utf-8').decode(encoded), t.decoded); |
}, 'Invalid surrogates encoded into UTF-8: ' + t.name); |