[Entry] Make 'freeze' and 'seal' do nothing (#152)

This commit is contained in:
Amsyar Rasyiq 2023-10-04 14:01:27 +08:00 committed by GitHub
parent d539e5a59a
commit 2cc1f8d76c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,10 @@ import { ClientInfoManager } from "@lib/native";
// This logs in the native logging implementation, e.g. logcat // This logs in the native logging implementation, e.g. logcat
console.log("Hello from Vendetta!"); console.log("Hello from Vendetta!");
// Make 'freeze' and 'seal' do nothing
Object.freeze = Object;
Object.seal = Object;
import(".").then((m) => m.default()).catch((e) => { import(".").then((m) => m.default()).catch((e) => {
console.log(e?.stack ?? e.toString()); console.log(e?.stack ?? e.toString());
alert([ alert([