{"ScriptPreparationCode":"var nullProto = Object.create( null );\r\nnullProto.value = 0;\r\n\r\nvar frozen = Object.freeze( {\r\n _value: 0,\r\n get value() {\r\n return this._value;\r\n },\r\n set value(x) {\r\n this._value = x\r\n },\r\n getValue() {\r\n return this._value\r\n },\r\n setValue(x) {\r\n this._value = x\r\n }\r\n} );\r\n\r\nclass Private {\r\n #value = 0;\r\n constructor() {\r\n this.#value = 1\r\n }\r\n get value() {\r\n return this.#value\r\n }\r\n set value(x) {\r\n this.#value = x\r\n }\r\n getValue() {\r\n return this.#value\r\n }\r\n setValue(x) {\r\n this.#value = x\r\n }\r\n}\r\n\r\nclass Public {\r\n value = 0;\r\n constructor() {\r\n this.value = 1\r\n }\r\n get value() {\r\n return this.value\r\n }\r\n set value(x) {\r\n this.value = x\r\n }\r\n getValue() {\r\n return this.value\r\n }\r\n setValue(x) {\r\n this.value = x\r\n }\r\n}\r\n\r\nvar private = new Private();\r\nvar public = new Public();\r\nvar val = 0;","TestCases":[{"Name":"Public ES6 property (get)","Code":"val = public.value;","IsDeferred":false},{"Name":"Public Getter function","Code":"val = public.getValue();","IsDeferred":false},{"Name":"Public ES6 property (set)","Code":"public.value = 1;","IsDeferred":false},{"Name":"Public Setter function","Code":"public.setValue(1);","IsDeferred":false},{"Name":"Private ES6 property (get)","Code":"val = private.value;","IsDeferred":false},{"Name":"Private Getter function","Code":"val = private.getValue();","IsDeferred":false},{"Name":"Private ES6 property (set)","Code":"private.value = 2;","IsDeferred":false},{"Name":"Private Setter function","Code":"private.setValue(2);","IsDeferred":false},{"Name":"Null Prototype Directly Set","Code":"nullProto.value = 3;","IsDeferred":false},{"Name":"Null Prototype Directly Get","Code":"val = nullProto.value;","IsDeferred":false},{"Name":"Frozen Object Literal (Get)","Code":"val = frozen.value;","IsDeferred":false},{"Name":"Frozen Object Literal (Set)","Code":"frozen.value = 4;","IsDeferred":false},{"Name":"Frozen Object Literal Getter Function","Code":"val = frozen.getValue();","IsDeferred":false},{"Name":"Frozen Object Literal Setter Function;","Code":"val = frozen.setValue( 4 );","IsDeferred":false}]}