@@ -311,6 +311,7 @@ namespace Js
311311 {
312312 INIT_ERROR_PROTO (webAssemblyCompileErrorPrototype, InitializeWebAssemblyCompileErrorPrototype);
313313 INIT_ERROR_PROTO (webAssemblyRuntimeErrorPrototype, InitializeWebAssemblyRuntimeErrorPrototype);
314+ INIT_ERROR_PROTO (webAssemblyLinkErrorPrototype, InitializeWebAssemblyLinkErrorPrototype);
314315 }
315316#endif
316317
@@ -471,6 +472,7 @@ namespace Js
471472 {
472473 INIT_SIMPLE_TYPE (webAssemblyCompileErrorType, TypeIds_Error, webAssemblyCompileErrorPrototype);
473474 INIT_SIMPLE_TYPE (webAssemblyRuntimeErrorType, TypeIds_Error, webAssemblyRuntimeErrorPrototype);
475+ INIT_SIMPLE_TYPE (webAssemblyLinkErrorType, TypeIds_Error, webAssemblyLinkErrorPrototype);
474476 }
475477#endif
476478
@@ -826,6 +828,9 @@ namespace Js
826828
827829 case kjstWebAssemblyRuntimeError:
828830 return GetWebAssemblyRuntimeErrorType ();
831+
832+ case kjstWebAssemblyLinkError:
833+ return GetWebAssemblyLinkErrorType ();
829834 }
830835
831836 return nullptr ;
@@ -1525,6 +1530,10 @@ namespace Js
15251530 DeferredTypeHandler<InitializeWebAssemblyRuntimeErrorConstructor>::GetDefaultInstance (),
15261531 nativeErrorPrototype);
15271532
1533+ webAssemblyLinkErrorConstructor = CreateBuiltinConstructor (&JavascriptError::EntryInfo::NewWebAssemblyLinkErrorInstance,
1534+ DeferredTypeHandler<InitializeWebAssemblyLinkErrorConstructor>::GetDefaultInstance (),
1535+ nativeErrorPrototype);
1536+
15281537 webAssemblyInstanceConstructor = CreateBuiltinConstructor (&WebAssemblyInstance::EntryInfo::NewInstance,
15291538 DeferredTypeHandler<InitializeWebAssemblyInstanceConstructor>::GetDefaultInstance (), webAssemblyInstancePrototype);
15301539
@@ -2101,6 +2110,7 @@ namespace Js
21012110 INIT_ERROR (URIError);
21022111 INIT_ERROR (WebAssemblyCompileError);
21032112 INIT_ERROR (WebAssemblyRuntimeError);
2113+ INIT_ERROR (WebAssemblyLinkError);
21042114
21052115#undef INIT_ERROR
21062116
@@ -2842,6 +2852,7 @@ namespace Js
28422852
28432853 library->AddFunction (webAssemblyObject, PropertyIds::CompileError, library->webAssemblyCompileErrorConstructor );
28442854 library->AddFunction (webAssemblyObject, PropertyIds::RuntimeError, library->webAssemblyRuntimeErrorConstructor );
2855+ library->AddFunction (webAssemblyObject, PropertyIds::LinkError, library->webAssemblyLinkErrorConstructor );
28452856 library->AddFunction (webAssemblyObject, PropertyIds::Memory, library->webAssemblyMemoryConstructor );
28462857 library->AddFunction (webAssemblyObject, PropertyIds::Table, library->webAssemblyTableConstructor );
28472858 }
@@ -6215,6 +6226,9 @@ namespace Js
62156226 case kjstWebAssemblyRuntimeError:
62166227 baseErrorType = webAssemblyRuntimeErrorType;
62176228 break ;
6229+ case kjstWebAssemblyLinkError:
6230+ baseErrorType = webAssemblyLinkErrorType;
6231+ break ;
62186232 }
62196233
62206234 JavascriptError *pError = RecyclerNew (recycler, JavascriptError, baseErrorType, TRUE );
@@ -6239,6 +6253,7 @@ namespace Js
62396253 CREATE_ERROR (URIError, uriErrorType, kjstURIError);
62406254 CREATE_ERROR (WebAssemblyCompileError, webAssemblyCompileErrorType, kjstWebAssemblyCompileError);
62416255 CREATE_ERROR (WebAssemblyRuntimeError, webAssemblyRuntimeErrorType, kjstWebAssemblyRuntimeError);
6256+ CREATE_ERROR (WebAssemblyLinkError, webAssemblyLinkErrorType, kjstWebAssemblyLinkError);
62426257
62436258#undef CREATE_ERROR
62446259
0 commit comments