1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Object.defineProperty(this, "x", { get: decodeURI, configurable: true }) try { String(b = new Proxy(function() { }, { get: function(r, z) { return x[z] } })) } catch (e) {}; var log = ""; evaluate(` try { function x() {} assertEq(String(b), "function () {}"); } catch (e) { log += "e"; } `); assertEq(log, "e");