Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 820582: freezing metadata and metadata.permissions in bootstrap.j…
Browse files Browse the repository at this point in the history
…s file now and no longer need to do this in the loader; freezing should only be done for add-on metadata
  • Loading branch information
erikvold committed Feb 20, 2013
1 parent 36d6971 commit 7018afe
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/toolkit/loader.js
Expand Up @@ -415,14 +415,6 @@ const Loader = iced(function Loader(options) {
sort(function(a, b) { return b.length - a.length }).
map(function(path) { return [ path, paths[path] ] });

// if no metadata is defined, then create a blank object
// here so that it can still be frozen
if (!options.metadata)
options.metadata = {};

// freeze the metadata to prevent changes at runtime
Object.freeze(options.metadata);

// Define pseudo modules.
modules = override({
'@loader/unload': destructor,
Expand Down

0 comments on commit 7018afe

Please sign in to comment.