michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: if (typeof evalcx == 'function') { michael@0: var src = 'try {\n' + michael@0: ' for (var [e] = /x/ in d) {\n' + michael@0: ' (function () {});\n' + michael@0: ' }\n' + michael@0: '} catch (e) {}\n' + michael@0: 'try {\n' + michael@0: ' let(x = Object.freeze(this, /x/))\n' + michael@0: ' e = {}.toString\n' + michael@0: ' function y() {}\n' + michael@0: '} catch (e) {}'; michael@0: michael@0: evalcx(src); michael@0: } michael@0: michael@0: reportCompare(0, 0, "don't crash");