JSObject* createJSWebAssemblyCompileError(ExecState* state, VM& vm, const String& message) { ASSERT(!message.isEmpty()); JSGlobalObject* globalObject = state->lexicalGlobalObject(); return JSWebAssemblyCompileError::create(state, vm, globalObject->WebAssemblyCompileErrorStructure(), message); }
JSObject* createWebAssemblyCompileError(ExecState* exec, const String& message) { ASSERT(!message.isEmpty()); JSGlobalObject* globalObject = exec->lexicalGlobalObject(); return ErrorInstance::create(exec, globalObject->vm(), globalObject->WebAssemblyCompileErrorStructure(), message, defaultSourceAppender, TypeNothing, true); }