diff --git a/test-js-c-interop/test.js b/test-js-c-interop/test.js index 8da3e61..e42cc70 100644 --- a/test-js-c-interop/test.js +++ b/test-js-c-interop/test.js @@ -3,8 +3,8 @@ class Vector3 { this._size = 12; this._ptr = ptr.buffer || new ArrayBuffer(this._size); this._data = new DataView(this._ptr); - for (const i of Object.keys(init)) { - this[i] = init[i]; + for (const key of Object.keys(init)) { + this[key] = init[key]; } } get x() { @@ -35,8 +35,8 @@ class Camera3D { this._size = 44; this._ptr = ptr.buffer || new ArrayBuffer(this._size); this._data = new DataView(this._ptr); - for (const i of Object.keys(init)) { - this[i] = init[i]; + for (const key of Object.keys(init)) { + this[key] = init[key]; } } get position() {