{"ScriptPreparationCode":"let translation = {\r\n KEY: \u0027value\u0027\r\n};\r\n\r\nfunction getTranslation(k) {\r\n return translation[k];\r\n}\r\n\r\nfunction getProxied1Translation(k) {\r\n const proxyHandler = {\r\n get: function(target, prop) {\r\n if (!target[prop]) {\r\n return \u0027missing\u0027\r\n }\r\n return target[prop];\r\n }\r\n };\r\n return new Proxy(translation, proxyHandler)\r\n}\r\n\r\nfunction getProxied2Translation(k) {\r\n const proxyHandler = {\r\n get: function(target, prop) {\r\n if (!target[prop]) {\r\n return \u0027missing\u0027\r\n }\r\n return Reflect.get(target, prop);\r\n }\r\n };\r\n return new Proxy(translation, proxyHandler)\r\n}","TestCases":[{"Name":"Get existing translation","Code":"getTranslation(\u0027KEY\u0027)","IsDeferred":false},{"Name":"get Proxied 1 translation: existing","Code":"getProxied1Translation(\u0027KEY\u0027)","IsDeferred":false},{"Name":"get Proxied 1 translation: non existent","Code":"getProxied1Translation(\u0027NOERROR\u0027)","IsDeferred":false},{"Name":"get Proxied 2 translation: existing","Code":"getProxied2Translation(\u0027KEY\u0027)","IsDeferred":false},{"Name":"get Proxied 2 translation: non existent","Code":"getProxied2Translation(\u0027NOERROR\u0027)","IsDeferred":false}]}