summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/padEnd/exception-symbol.js
blob: deac35a8b75459dcd53c6e46cd6f0471a256f419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 receiver.
author: Jordan Harband
features: [Symbol]
---*/

assert.throws(TypeError, function() {
  String.prototype.padEnd.call(Symbol());
});

reportCompare(0, 0);