global.ArrayBufferTest = class { getBuffer() { return new ArrayBuffer(3); } setBuffer(x) { // ... } };