| 83 | } |
| 84 | |
| 85 | bool evaluateHarness(const std::string& file, |
| 86 | std::string source, |
| 87 | std::string& error_type, |
| 88 | std::string& error_description) { |
| 89 | if (_context == nullptr) { |
| 90 | return true; |
| 91 | } |
| 92 | |
| 93 | auto val = tsn_eval(_context, source.c_str(), source.length(), source.c_str(), TSN_EVAL_TYPE_GLOBAL); |
| 94 | if (tsn_is_exception(_context, val) != 0) { |
| 95 | decodeException(_context, error_type, error_description); |
| 96 | return false; |
| 97 | } |
| 98 | tsn_release(_context, val); |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | bool evaluateCompiledTest( |
| 103 | std::string& module, bool isStrict, bool isModule, std::string& error_type, std::string& error_description) { |
no test coverage detected