to-string-err-symbol.js (428B)
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-escape-string 5 es6id: B.2.1.1 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 escape(s); 16 }); 17 18 reportCompare(0, 0);