- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
21 lines
673 B
JavaScript
21 lines
673 B
JavaScript
'use strict';
|
|
var $ = require('../internals/export');
|
|
var getBuiltIn = require('../internals/get-built-in');
|
|
var anObject = require('../internals/an-object');
|
|
var FREEZING = require('../internals/freezing');
|
|
|
|
// `Reflect.preventExtensions` method
|
|
// https://tc39.es/ecma262/#sec-reflect.preventextensions
|
|
$({ target: 'Reflect', stat: true, sham: !FREEZING }, {
|
|
preventExtensions: function preventExtensions(target) {
|
|
anObject(target);
|
|
try {
|
|
var objectPreventExtensions = getBuiltIn('Object', 'preventExtensions');
|
|
if (objectPreventExtensions) objectPreventExtensions(target);
|
|
return true;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
}
|
|
});
|