Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index ac60f3bf834b4ab8677658dd1ac886599b327eec..9345cb65b5af7f53449fbb15b4874e49f3f067cb 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -18,6 +18,7 @@ |
#include "src/wasm/module-decoder.h" |
#include "src/wasm/wasm-js.h" |
+#include "src/wasm/wasm-limits.h" |
#include "src/wasm/wasm-module.h" |
#include "src/wasm/wasm-objects.h" |
#include "src/wasm/wasm-result.h" |
@@ -315,7 +316,7 @@ void WebAssemblyTable(const v8::FunctionCallbackInfo<v8::Value>& args) { |
return; |
} |
} else { |
- maximum = static_cast<int>(i::wasm::WasmModule::kV8MaxTableSize); |
+ maximum = static_cast<int>(i::wasm::kV8MaxWasmTableSize); |
} |
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |