diff options
| author | spv420 <spv@spv.sh> | 2022-07-31 22:58:27 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-07-31 22:58:27 -0400 |
| commit | 4c1c94baadd86802320cb1fd9b058df98a3b78ad (patch) | |
| tree | e78477819572c69192a8571419ea0817c44e78f1 /src/stage4/lib | |
| parent | 912f8ee96e1cc4783220d90864d73401a714b36d (diff) | |
w00t
Diffstat (limited to 'src/stage4/lib')
| -rw-r--r-- | src/stage4/lib/native_ptr.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/stage4/lib/native_ptr.js b/src/stage4/lib/native_ptr.js index 39c9fef..8c11306 100644 --- a/src/stage4/lib/native_ptr.js +++ b/src/stage4/lib/native_ptr.js @@ -11,12 +11,19 @@ class native_ptr { this.size = our_proto.size; this.buf_to_obj = our_proto.buf_to_obj; this.obj_to_buf = our_proto.obj_to_buf; - return; + } else { + this.size = arguments[1]; + this.buf_to_obj = arguments[2]; + this.obj_to_buf = arguments[3]; + } + + if (this.addy === undefined) { + this.addy = shit_heap(this.size); } - this.size = arguments[1]; - this.buf_to_obj = arguments[2]; - this.obj_to_buf = arguments[3]; + if (our_proto.predef == true) { + return; + } if (this.size === undefined) { this.size = 4; |
