1 // Copyright (C) 2022 Jordan Harband. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-string.prototype.towellformed
6 Return abrupt from RequireObjectCoercible(this value).
8 String.prototype.toWellFormed( )
10 1. Let O be ? RequireObjectCoercible(this value).
12 features: [String.prototype.toWellFormed]
14 assert.sameValue(typeof String.prototype.toWellFormed, 'function');
16 assert.throws(TypeError, function () {
17 String.prototype.toWellFormed.call(undefined);
20 assert.throws(TypeError, function () {
21 String.prototype.toWellFormed.call(null);