1/* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4/* 5 * Internal module used to test the generation of Integration.jsm getters. 6 */ 7 8"use strict"; 9 10var EXPORTED_SYMBOLS = [ 11 "TestIntegration", 12]; 13 14var TestIntegration = { 15 value: "value", 16 17 get valueFromThis() { 18 return this.value; 19 }, 20 21 get property() { 22 return this._property; 23 }, 24 25 set property(value) { 26 this._property = value; 27 }, 28 29 method(argument) { 30 this.methodArgument = argument; 31 return "method" + argument; 32 }, 33 34 async asyncMethod(argument) { 35 this.asyncMethodArgument = argument; 36 return "asyncMethod" + argument; 37 }, 38}; 39