فهرست منبع

[MERGE #1972 @Cellule] WASM - WebAssembly.Memory constructor prototype

Michael Ferris 9 سال پیش
والد
کامیت
fcca91eb9b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/Runtime/Library/JavascriptLibrary.cpp

+ 1 - 1
lib/Runtime/Library/JavascriptLibrary.cpp

@@ -2708,7 +2708,7 @@ namespace Js
         JavascriptLibrary* library = constructor->GetLibrary();
         ScriptContext* scriptContext = constructor->GetScriptContext();
         library->AddMember(constructor, PropertyIds::length, TaggedInt::ToVarUnchecked(1), PropertyConfigurable);
-        library->AddMember(constructor, PropertyIds::prototype, library->webAssemblyInstancePrototype, PropertyNone);
+        library->AddMember(constructor, PropertyIds::prototype, library->webAssemblyMemoryPrototype, PropertyNone);
         if (scriptContext->GetConfig()->IsES6FunctionNameEnabled())
         {
             library->AddMember(constructor, PropertyIds::name, library->CreateStringFromCppLiteral(_u("WebAssemblyMemory")), PropertyConfigurable);