test262/harness/runTestCase.js

6 lines
126 B
JavaScript

function runTestCase(testcase) {
if (testcase() !== true) {
$ERROR("Test case returned non-true value!");
}
}