blob: 6cd2663e3f33aecc41d81a7b2ef596a72167de5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-escape-string
es6id: B.2.1.1
description: Abrupt completion from `ToString` operation (Symbol value)
info: |
1. Let string be ? ToString(string).
features: [Symbol]
---*/
var s = Symbol('');
assert.throws(TypeError, function() {
escape(s);
});
reportCompare(0, 0);
|