mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
MISC: Protect against reassigning certain globals (#972)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// This file is imported for side effects only.
|
||||
/* Prevent inadvertantly redefining certain window properties,
|
||||
which are known to cause unrecoverable game errors when redefined.
|
||||
The player is able to redefine these properties as writable if desired. */
|
||||
Object.defineProperties(window, {
|
||||
Number: { writable: false },
|
||||
Object: { writable: false },
|
||||
String: { writable: false },
|
||||
});
|
||||
Reference in New Issue
Block a user