michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: var arguments; michael@0: michael@0: function b(foo) { michael@0: delete foo.d michael@0: delete foo.w michael@0: foo.d = true michael@0: foo.w = Object michael@0: delete Object.defineProperty(foo, "d", ({ michael@0: set: Math.w michael@0: })); {} michael@0: } michael@0: for each(e in [arguments, arguments]) { michael@0: try { michael@0: b(e)('') michael@0: } catch (e) {} michael@0: } michael@0: michael@0: reportCompare(0, 0, "ok");