Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 404 Bytes
#include <cstdlib>
#include <cassert>
#include "common.h"
using namespace v8;
Handle<Value>
ErrorException(const char *msg)
{
HandleScope scope;
return Exception::Error(String::New(msg));
}
Handle<Value>
VException(const char *msg) {
HandleScope scope;
return ThrowException(ErrorException(msg));
}
bool str_eq(const char *s1, const char *s2)
{
return strcmp(s1, s2) == 0;
}