You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
424 B
16 lines
424 B
// 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; |
|
} |
|
} |
|
});
|
|
|