blob: 9ff35d1c3fb75ca3b75adc34abcc97b260ac4ed8 [file] [log] [blame]
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
Object.defineProperty(
this.__proto__, "boom",
{ value:153, writable:true, configurable: true, enumerable:false });
var good = 1;
try {
boom = 42;
} catch (e) {}
var properties = Object.getOwnPropertyNames(this);
assertTrue(properties.findIndex(e => e == "good") >= 0);
assertEquals(properties.findIndex(e => e == "boom"), -1);