test262/tools/SputnikConverter/testNegativePrereqTemplate.js

23 lines
413 B
JavaScript

{0}
// Converted for Test262 from original Sputnik source
ES5Harness.registerTest( {{
id: "{1}",
path: "TestCases/{2}",
description: "{4}",
test: function testcase() {{
try {{
(function() {{
{5} {6} }})();
}} catch (__e__) {{return true /* failure is success */}};
return false /* but success is failure */
}},
precondition: function precond() {{
{7}
}}
}});