wallet-core/node_modules/core-js/modules/es6.reflect.prevent-extensions.js
2017-05-27 17:36:13 +02:00

16 lines
437 B
JavaScript

// 26.1.12 Reflect.preventExtensions(target)
var $export = require('./_export')
, anObject = require('./_an-object')
, $preventExtensions = Object.preventExtensions;
$export($export.S, 'Reflect', {
preventExtensions: function preventExtensions(target){
anObject(target);
try {
if($preventExtensions)$preventExtensions(target);
return true;
} catch(e){
return false;
}
}
});