mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-04-04 21:31:08 +02:00
17 lines
424 B
JavaScript
17 lines
424 B
JavaScript
// 26.1.12 Reflect.preventExtensions(target)
|
|
var $export = require('./_export');
|
|
var anObject = require('./_an-object');
|
|
var $preventExtensions = Object.preventExtensions;
|
|
|
|
$export($export.S, 'Reflect', {
|
|
preventExtensions: function preventExtensions(target) {
|
|
anObject(target);
|
|
try {
|
|
if ($preventExtensions) $preventExtensions(target);
|
|
return true;
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
}
|
|
});
|