{"ScriptPreparationCode":null,"TestCases":[{"Name":"define in function","Code":"const run_one_regex = (text) =\u003E {\r\n ONE_REGEX = /^(?!.* $\\s)[\\w *()[\\]\u0027\u0022/.\u0026\u2013-]\u002B$/gm\r\n return ONE_REGEX.test(text);\r\n}\r\nconst text = \u0027blarb\u0027;\r\nfor(let i = 0; i \u003C 20000; i\u002B\u002B) {\r\n run_one_regex(text);\r\n}","IsDeferred":false},{"Name":"define outside","Code":"ONE_REGEX = /^(?!.* $\\s)[\\w *()[\\]\u0027\u0022/.\u0026\u2013-]\u002B$/gm\r\n\r\nconst run_one_regex = (text) =\u003E {\r\n return ONE_REGEX.test(text);\r\n}\r\nconst text = \u0027blarb\u0027;\r\nfor(let i = 0; i \u003C 20000; i\u002B\u002B) {\r\n run_one_regex(text);\r\n}","IsDeferred":false}]}