wallet-core/node_modules/core-js/modules/es6.reflect.prevent-extensions.js

16 lines
439 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
// 26.1.12 Reflect.preventExtensions(target)
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;
}
}
});