Index: src/wasm/wasm-objects.cc |
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc |
index f7843adf8be6f9bfd06a56953088b62422ff5396..40c8d1a818841ee773b84ab9056345c6572ed418 100644 |
--- a/src/wasm/wasm-objects.cc |
+++ b/src/wasm/wasm-objects.cc |
@@ -312,10 +312,10 @@ Handle<WasmExportedFunction> WasmExportedFunction::New( |
Isolate* isolate, Handle<WasmInstanceObject> instance, |
MaybeHandle<String> maybe_name, int func_index, int arity, |
Handle<Code> export_wrapper) { |
- ScopedVector<char> buffer(16); |
- int length = SNPrintF(buffer, "%d", func_index); |
Handle<String> name; |
if (maybe_name.is_null()) { |
+ EmbeddedVector<char, 16> buffer; |
+ int length = SNPrintF(buffer, "%d", func_index); |
name = isolate->factory() |
->NewStringFromAscii( |
Vector<const char>::cast(buffer.SubVector(0, length))) |