mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
22 lines
452 B
JavaScript
22 lines
452 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
class ObjectClient {
|
|
constructor(client, grip) {
|
|
this._grip = grip;
|
|
this._client = client;
|
|
this.request = this._client.request;
|
|
}
|
|
|
|
getPrototypeAndProperties() {
|
|
return this._client.request({
|
|
to: this._grip.actor,
|
|
type: "prototypeAndProperties"
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = { ObjectClient };
|