1f85e193739c953358c865005855253af4f68a497John McCall// Copyright 2008 the V8 project authors. All rights reserved. 2f85e193739c953358c865005855253af4f68a497John McCall// Redistribution and use in source and binary forms, with or without 3f85e193739c953358c865005855253af4f68a497John McCall// modification, are permitted provided that the following conditions are 4f85e193739c953358c865005855253af4f68a497John McCall// met: 5f85e193739c953358c865005855253af4f68a497John McCall// 6f85e193739c953358c865005855253af4f68a497John McCall// * Redistributions of source code must retain the above copyright 7f85e193739c953358c865005855253af4f68a497John McCall// notice, this list of conditions and the following disclaimer. 8f85e193739c953358c865005855253af4f68a497John McCall// * Redistributions in binary form must reproduce the above 9f85e193739c953358c865005855253af4f68a497John McCall// copyright notice, this list of conditions and the following 10f85e193739c953358c865005855253af4f68a497John McCall// disclaimer in the documentation and/or other materials provided 11f85e193739c953358c865005855253af4f68a497John McCall// with the distribution. 12f85e193739c953358c865005855253af4f68a497John McCall// * Neither the name of Google Inc. nor the names of its 13f85e193739c953358c865005855253af4f68a497John McCall// contributors may be used to endorse or promote products derived 14f85e193739c953358c865005855253af4f68a497John McCall// from this software without specific prior written permission. 15// 16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28// Should be able to delete properties in the context through eval(). 29tmp = 0; 30assertTrue(eval("delete XXX")); // non-existing 31assertTrue(eval("delete tmp")); // existing 32assertFalse("tmp" in this); 33