Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/annexB/built-ins/unescape/to-string-err-symbol.js

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