mirror of https://github.com/tc39/test262.git
1 line
77 KiB
JSON
1 line
77 KiB
JSON
{"testsCollection":{"name":"Chapter - 15.2.3.8","numTests":"43","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuOC0wLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgbXVzdCBleGlzdCBhcyBhIGZ1bmN0aW9uIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIHZhciBmID0gT2JqZWN0LnNlYWw7CiAgaWYgKHR5cGVvZihmKSA9PT0gImZ1bmN0aW9uIikgewogICAgcmV0dXJuIHRydWU7CiAgfQogfQp9KTsK","id":"15.2.3.8-0-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-0-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuOC0wLTIiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMC0yLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgbXVzdCBleGlzdCBhcyBhIGZ1bmN0aW9uIHRha2luZyAxIHBhcmFtZXRlciIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICBpZiAoT2JqZWN0LnNlYWwubGVuZ3RoID09PSAxKSB7CiAgICByZXR1cm4gdHJ1ZTsKICB9CiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5zZWFsKTsKIH0KfSk7Cg==","id":"15.2.3.8-0-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-0-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0xLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTEtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCB0aHJvd3MgVHlwZUVycm9yIGlmIHR5cGUgb2YgZmlyc3QgcGFyYW0gaXMgdW5kZWZpbmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3Quc2VhbCh1bmRlZmluZWQpOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3Quc2VhbCk7CiAgICB9Cn0pOyAK","id":"15.2.3.8-1-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-1-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0xLTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTEtMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCB0aHJvd3MgVHlwZUVycm9yIGlmIHR5cGUgb2YgZmlyc3QgcGFyYW0gaXMgbnVsbCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LnNlYWwobnVsbCk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5zZWFsKTsKICAgIH0KfSk7Cg==","id":"15.2.3.8-1-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-1-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0xLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTEtMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCB0aHJvd3MgVHlwZUVycm9yIGlmIHR5cGUgb2YgZmlyc3QgcGFyYW0gaXMgYSBib29sZWFuIHByaW1pdGl2ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LnNlYWwoZmFsc2UpOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3Quc2VhbCk7CiAgICB9Cn0pOwo=","id":"15.2.3.8-1-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-1-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3Qoew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vZiBUeXBlRXJyb3IpIHsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgfQogICAgfQogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhPYmplY3Quc2VhbCk7CiB9Cn0pOwo=","id":"15.2.3.8-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTItMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCAtIGV4dGVuc2libGUgb2YgJ08nIGlzIHNldCBhcyBmYWxzZSBldmVuIGlmICdPJyBoYXMgbm8gb3duIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcmVDaGVjayA9IE9iamVjdC5pc0V4dGVuc2libGUob2JqKTsKCiAgICAgICAgT2JqZWN0LnNlYWwob2JqKTsKCiAgICAgICAgcmV0dXJuIHByZUNoZWNrICYmICFPYmplY3QuaXNFeHRlbnNpYmxlKG9iaik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3Quc2VhbCkgJiYgZm5FeGlzdHMoT2JqZWN0LmlzRXh0ZW5zaWJsZSk7CiAgICB9Cn0pOwo=","id":"15.2.3.8-2-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLTIiLAoKICAgIHB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BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuaXNFeHRlbnNpYmxlKTsKICAgIH0KfSk7Cg==","id":"15.2.3.8-2-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTItMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCAtIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0aWVzIGFyZSBpZ25vcmVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiRmF0aGVyIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gT2JqZWN0LmlzRXh0ZW5zaWJsZShjaGlsZCk7CiAgICAgICAgT2JqZWN0LnNlYWwoY2hpbGQpOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IHByb3RvLmhhc093blByb3BlcnR5KCJGYXRoZXIiKTsKICAgICAgICBkZWxldGUgcHJvdG8uRmF0aGVyOwogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBwcm90by5oYXNPd25Qcm9wZXJ0eSgiRmF0aGVyIik7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiBiZWZvcmVEZWxldGVkICYmICFhZnRlckRlbGV0ZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3Quc2VhbCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuaXNFeHRlbnNpYmxlKTsKICAgIH0KfSk7","id":"15.2.3.8-2-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTItNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCAtIG5vbi1lbnVtZXJhYmxlIG93biBwcm9wZXJ0eSBvZiAnTycgaXMgc2VhbGVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcmVDaGVjayA9IE9iamVjdC5pc0V4dGVuc2libGUob2JqKTsKICAgICAgICBPYmplY3Quc2VhbChvYmopOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIik7CiAgICAgICAgZGVsZXRlIG9iai5mb287CiAgICAgICAgdmFyIGFmdGVyRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIik7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiBiZWZvcmVEZWxldGVkICYmIGFmdGVyRGVsZXRlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5zZWFsKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgLSAnUCcgaXMgb3duIGRhdGEgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgb2JqLmZvbyA9IDEwOyAvLyBkZWZhdWx0IFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mIGZvbzogdHJ1ZQogICAgICAgIHZhciBwcmVDaGVjayA9IE9iamVjdC5pc0V4dGVuc2libGUob2JqKTsKICAgICAgICBPYmplY3Quc2VhbChvYmopOwoKICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgb2JqLm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fSk7","id":"15.2.3.8-2-a-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTItYS0xMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCAtICdQJyBpcyBvd24gcHJvcGVydHkgb2YgYSBOdW1iZXIgb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldE93blByb3BlcnR5XV0iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBudW1PYmogPSBuZXcgTnVtYmVyKC0xKTsKCiAgICAgICAgbnVtT2JqLmZvbyA9IDEwOwogICAgICAgIHZhciBwcmVDaGVjayA9IE9iamVjdC5pc0V4dGVuc2libGUobnVtT2JqKTsKICAgICAgICBPYmplY3Quc2VhbChudW1PYmopOwoKICAgICAgICBkZWxldGUgbnVtT2JqLmZvbzsKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgbnVtT2JqLmZvbyA9PT0gMTA7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3Quc2VhbCkgJiYgZm5FeGlzdHMoT2JqZWN0LmlzRXh0ZW5zaWJsZSk7CiAgICB9Cn0pOw==","id":"15.2.3.8-2-a-11","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtMTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvM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LAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZWdPYmogPSBuZXcgUmVnRXhwKCk7CgogICAgICAgIHJlZ09iai5mb28gPSAxMDsKICAgICAgICB2YXIgcHJlQ2hlY2sgPSBPYmplY3QuaXNFeHRlbnNpYmxlKHJlZ09iaik7CiAgICAgICAgT2JqZWN0LnNlYWwocmVnT2JqKTsKCiAgICAgICAgZGVsZXRlIHJlZ09iai5mb287CiAgICAgICAgcmV0dXJuIHByZUNoZWNrICYmIHJlZ09iai5mb28gPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LnNlYWwpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-a-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy44LzE1LjIuMy44LTItYS0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3Quc2VhbCAtICdQJyBpcyBvd24gcHJvcGVydHkgb2YgYW4gRXJyb3Igb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldE93blByb3BlcnR5XV0iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBlcnJPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgZXJyT2JqLmZvbyA9IDEwOwogICAgICAgIHZhciBwcmVDaGVjayA9IE9iamVjdC5pc0V4dGVuc2libGUoZXJyT2JqKTsKICAgICAgICBPYmplY3Quc2V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CiAgICAgICAgZGVsZXRlIGNoaWxkLmZvbzsKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgY2hpbGQuZm9vID09PSAxMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5zZWFsKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-a-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgLSAnUCcgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbnN0cnVjdEZ1biA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb25zdHJ1Y3RGdW4ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb25zdHJ1Y3RGdW4oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gT2JqZWN0LmlzRXh0ZW5zaWJsZShjaGlsZCk7CiAgICAgICAgT2JqZWN0LnNlYWwoY2hpbGQpOwoKICAgICAgICBkZWxldGUgY2hpbGQuZm9vOwogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiBjaGlsZC5mb28gPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LnNlYWwpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmlzRXh0ZW5zaWJsZSk7CiAgICB9Cn0pOw==","id":"15.2.3.8-2-a-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgLSAnUCcgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICB2YXIgcHJlQ2hlY2sgPSBPYmplY3QuaXNFeHRlbnNpYmxlKG9iaik7CiAgICAgICAgT2JqZWN0LnNlYWwob2JqKTsKCiAgICAgICAgZGVsZXRlIG9iai5mb287CiAgICAgICAgcmV0dXJuIHByZUNoZWNrICYmIG9iai5mb28gPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LnNlYWwpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmlzRXh0ZW5zaWJsZSk7CiAgICB9Cn0pOw==","id":"15.2.3.8-2-a-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgLSAnUCcgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZm9vIiwgewogICAgICAgICAgICB2YWx1ZTogMCwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb25zdHJ1Y3RGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uc3RydWN0RnVuLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uc3RydWN0RnVuKCk7CiAgICAgICAgCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gT2JqZWN0LmlzRXh0ZW5zaWJsZShjaGlsZCk7CiAgICAgICAgT2JqZWN0LnNlYWwoY2hpbGQpOwoKICAgICAgICBkZWxldGUgY2hpbGQuZm9vOwogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiBjaGlsZC5mb28gPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LnNlYWwpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmlzRXh0ZW5zaWJsZSk7CiAgICB9Cn0pOw==","id":"15.2.3.8-2-a-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOi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aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-a-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgLSAnUCcgaXMgb3duIHByb3BlcnR5IG9mIGEgRnVuY3Rpb24gb2JqZWN0IHRoYXQgdXNlcyBPYmplY3QncyBbW0dldE93blByb3BlcnR5XV0iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBmdW5PYmogPSBmdW5jdGlvbiAoKSB7IH07CgogICAgICAgIGZ1bk9iai5mb28gPSAxMDsgLy8gZGVmYXVsdCBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiBmb286IHRydWUKICAgICAgICB2YXIgcHJlQ2hlY2sgPSBPYmplY3QuaXNFeHRlbnNpYmxlKGZ1bk9iaik7CiAgICAgICAgT2JqZWN0LnNlYWwoZnVuT2JqKTsKCiAgICAgICAgZGVsZXRlIGZ1bk9iai5mb287CiAgICAgICAgcmV0dXJuIHByZUNoZWNrICYmIGZ1bk9iai5mb28gPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LnNlYWwpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-a-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LnNlYWwgLSAnUCcgaXMgb3duIHByb3BlcnR5IG9mIGFuIEFycmF5IG9iamVjdCB0aGF0IHVzZXMgT2JqZWN0J3MgW1tHZXRPd25Qcm9wZXJ0eV1dIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyT2JqID0gW107CgogICAgICAgIGFyck9iai5mb28gPSAxMDsKICAgICAgICB2YXIgcHJlQ2hlY2sgPSBPYmplY3QuaXNFeHRlbnNpYmxlKGFyck9iaik7CiAgICAgICAgT2JqZWN0LnNlYWwoYXJyT2JqKTsKCiAgICAgICAgZGVsZXRlIGFyck9iai5mb287CiAgICAgICAgcmV0dXJuIHByZUNoZWNrICYmIGFyck9iai5mb28gPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LnNlYWwpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-a-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-a-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOC0yLWEtOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjgvMTUuMi4zLjgtMi1hLTkuanMiLAoKIC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dHJpYnV0ZXMgb2YgdGhlIHByb3BlcnR5IGFyZSB1bmFsdGVyZWQiLAogICAgCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBwcmVDaGVjayA9IE9iamVjdC5pc0V4dGVuc2libGUob2JqKTsKICAgICAgICBPYmplY3Quc2VhbChvYmopOwoKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAsIHRydWUsIHRydWUsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5zZWFsKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-b-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-b-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQ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BnZXRfZnVuYywKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gT2JqZWN0LmlzRXh0ZW5zaWJsZShvYmopOwogICAgICAgIE9iamVjdC5zZWFsKG9iaik7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28xIiwgMTAsIHRydWUsIHRydWUsIGZhbHNlKSAmJgogICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vMiIsIGdldF9mdW5jLCBzZXRfZnVuYywgInZhcmlhYmxlRm9ySGVscFZlcmlmeSIsIHRydWUsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5zZWFsKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTs=","id":"15.2.3.8-2-b-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-b-3.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6I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HZhciBvYmogPSB7fTsKICAgICAgICBvYmoudmFyaWFibGVGb3JIZWxwVmVyaWZ5ID0gImRhdGEiOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vMSIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBmdW5jdGlvbiBzZXRfZnVuYyh2YWx1ZSkgewogICAgICAgICAgICBvYmoudmFyaWFibGVGb3JIZWxwVmVyaWZ5ID0gdmFsdWU7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28yIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBzZXQ6IHNldF9mdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gT2JqZWN0LmlzRXh0ZW5zaWJsZShvYmopOwogICAgICAgIE9iamVjdC5zZWFsKG9iaik7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28xIiwgMTAsIHRydWUsIHRydWUsIGZhbHNlKSAmJgogICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vMiIsIGdldF9mdW5jLCBzZXRfZnVuYywgInZhcmlhYmxlRm9ySGVscFZlcmlmeSIsIHRydWUsIGZhbHNlKTsKICAgIH0sCgog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