test262/website/resources/scripts/testcases2/7.8.5.json

15 lines
597 B
JSON

{
"testCollection": {
"name": "7.8.5",
"numTests": 1,
"tests": [
{
"id": "7.8.5-1",
"path": "TestCases/chapter07/7.8/7.8.5/7.8.5-1.js",
"description": "Literal RegExp Objects - SyntaxError exception is thrown if the RegularExpressionNonTerminator position of a RegularExpressionBackslashSequence is a LineTerminator.",
"test": "assertTrue((function testcase() {\n try {\n eval(\"var regExp = /\\\\\\rn/;\");\n return false;\n } catch (e) {\n return e instanceof SyntaxError;\n }\n }).call(this));\n"
}
]
}
}