2016-10-10 03:43:44 +02:00
|
|
|
// 26.1.12 Reflect.preventExtensions(target)
|
2017-04-20 03:09:25 +02:00
|
|
|
var $export = require('./$.export')
|
|
|
|
, anObject = require('./$.an-object')
|
2016-10-10 03:43:44 +02:00
|
|
|
, $preventExtensions = Object.preventExtensions;
|
|
|
|
|
|
|
|
$export($export.S, 'Reflect', {
|
|
|
|
preventExtensions: function preventExtensions(target){
|
|
|
|
anObject(target);
|
|
|
|
try {
|
|
|
|
if($preventExtensions)$preventExtensions(target);
|
|
|
|
return true;
|
|
|
|
} catch(e){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|