Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_5 / regress / regress-597945-1.js
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * Any copyright is dedicated to the Public Domain.
4  * http://creativecommons.org/licenses/publicdomain/
5  */
6
7 function b(foo) {
8     delete foo.d
9     delete foo.w
10     foo.d = true
11     foo.w = Object
12     delete Object.defineProperty(foo, "d", ({
13         set: Math.w
14     })); {}
15 }
16 for each(e in [arguments, arguments]) {
17     try {
18         b(e)('')
19     } catch (e) {}
20 }
21
22 reportCompare(0, 0, "ok");