WebAssemblyCompileErrorPrototype.cpp [plain text]
#include "config.h"
#include "WebAssemblyCompileErrorPrototype.h"
#if ENABLE(WEBASSEMBLY)
#include "AuxiliaryBarrierInlines.h"
#include "JSCInlines.h"
#include "WebAssemblyCompileErrorPrototype.lut.h"
namespace JSC {
const ClassInfo WebAssemblyCompileErrorPrototype::s_info = { "WebAssembly.CompileError", &Base::s_info, &prototypeTableWebAssemblyCompileError, nullptr, CREATE_METHOD_TABLE(WebAssemblyCompileErrorPrototype) };
WebAssemblyCompileErrorPrototype* WebAssemblyCompileErrorPrototype::create(VM& vm, JSGlobalObject*, Structure* structure)
{
auto* object = new (NotNull, allocateCell<WebAssemblyCompileErrorPrototype>(vm.heap)) WebAssemblyCompileErrorPrototype(vm, structure);
object->finishCreation(vm);
return object;
}
Structure* WebAssemblyCompileErrorPrototype::createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
}
void WebAssemblyCompileErrorPrototype::finishCreation(VM& vm)
{
Base::finishCreation(vm);
ASSERT(inherits(vm, info()));
putDirectWithoutTransition(vm, vm.propertyNames->name, jsNontrivialString(vm, "CompileError"_s), static_cast<unsigned>(PropertyAttribute::DontEnum));
putDirectWithoutTransition(vm, vm.propertyNames->message, jsEmptyString(vm), static_cast<unsigned>(PropertyAttribute::DontEnum));
}
WebAssemblyCompileErrorPrototype::WebAssemblyCompileErrorPrototype(VM& vm, Structure* structure)
: Base(vm, structure)
{
}
}
#endif // ENABLE(WEBASSEMBLY)