remove original defining property.

This commit is contained in:
Rintim 2023-09-27 14:10:23 +08:00
parent 0ad723d2db
commit a2cbab4a25
1 changed files with 0 additions and 20 deletions

View File

@ -8953,26 +8953,6 @@
window.game=game;
game.dynamicStyle.init();
Object.defineProperty(lib.creation,"array",{
enumerable:true,
get:()=>[],
set:()=>null
});
Object.defineProperty(lib.creation,"object",{
enumerable:true,
get:()=>({}),
set:()=>null
});
Object.defineProperty(lib.creation,"nullObject",{
enumerable:true,
get:()=>Object.create(null),
set:()=>null
});
Object.defineProperty(lib.creation,"string",{
enumerable:true,
get:()=>"",
set:()=>null
});
// node:path library alternative
if (typeof module!="object"||typeof module.exports!="object") lib.init.js(`${lib.assetURL}game`,"path.min",()=>{
lib.path=window._noname_path;