blob: 37f4f723b4caabd77ba7b34d26cde14de81824bd [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Boolean.prototype has the attribute DontDelete
esid: sec-boolean.prototype
es5id: 15.6.3.1_A3
description: Checking if deleting the Boolean.prototype property fails
includes: [propertyHelper.js]
---*/
// CHECK#1
verifyNotConfigurable(Boolean, "prototype");
try {
if (delete Boolean.prototype !== false) {
$ERROR('#1: Boolean.prototype has the attribute DontDelete');
}
} catch (e) {
if (e instanceof Test262Error) throw e;
assert(e instanceof TypeError);
}