summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js
blob: 96d9d2859595348f16af2d43fc83a400417c74fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2016 Jordan Harband. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-string.prototype.padend
description: String#padEnd should fail if given a Symbol fillString.
author: Jordan Harband
features: [Symbol]
---*/

assert.throws(TypeError, function() {
  'abc'.padEnd(10, Symbol());
});