Drop useless object freezes
This commit is contained in:
parent
6757d8afdb
commit
60a665642f
1 changed files with 1 additions and 4 deletions
|
@ -91,10 +91,7 @@ void Scripting::populateGlobalObject(MainWindow *mainWindow) {
|
|||
|
||||
instance->engine->globalObject().setProperty("constants", constants);
|
||||
|
||||
// Prevent changes to the object properties of the global object
|
||||
instance->engine->evaluate("Object.freeze(map);");
|
||||
instance->engine->evaluate("Object.freeze(overlay);");
|
||||
instance->engine->evaluate("Object.freeze(utility);");
|
||||
// Prevent changes to the constants object
|
||||
instance->engine->evaluate("Object.freeze(constants.version);");
|
||||
instance->engine->evaluate("Object.freeze(constants);");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue