Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index b8cf20dd5b0924490fdcb5b57ed484e51797e9b4..dd5358c6c35f67b386807ee5e314c7038c0d3ab3 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -14020,7 +14020,7 @@ TEST(ObjectProtoToStringES6) { |
Local<Value> valueNumber = v8_num(123); |
Local<v8::Symbol> valueSymbol = v8_symbol("TestSymbol"); |
Local<v8::Function> valueFunction = |
- CompileRun("function fn() {}").As<v8::Function>(); |
+ CompileRun("(function fn() {})").As<v8::Function>(); |
Local<v8::Object> valueObject = v8::Object::New(v8::Isolate::GetCurrent()); |
Local<v8::Primitive> valueNull = v8::Null(v8::Isolate::GetCurrent()); |
Local<v8::Primitive> valueUndef = v8::Undefined(v8::Isolate::GetCurrent()); |