Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 6b6f80f795debf708f1882772eea5a3ade12dd98..17792341eac5a9955ec497dae1023bab46a3c31d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6996,7 +6996,7 @@ static i::Handle<i::Symbol> SymbolFor(i::Isolate* isolate, |
else |
symbol = isolate->factory()->NewSymbol(); |
i::Handle<i::Symbol>::cast(symbol)->set_name(*name); |
- i::JSObject::SetProperty(symbols, name, symbol, i::STRICT).Assert(); |
+ i::Object::SetPropertyOrElement(symbols, name, symbol, i::STRICT).Assert(); |
} |
return i::Handle<i::Symbol>::cast(symbol); |
} |