From 0a8af38cf0add7592bf8f491e45a5de8b125a190 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Sun, 2 Jun 2013 21:35:17 -0300 Subject: Fix for assert in V8 after a string is converted to a symbol When a string is converted to a symbol by SymbolKey::AsObject, its symbol_id is undefined. Change-Id: I63c41d52e309f67a4c8fc2629bdc9fb6a18fd2b5 bug: https://bugreports.qt-project.org/browse/QTBUG-31513 Reviewed-by: Milian Wolff Reviewed-by: Peter Varga --- src/3rdparty/v8/src/objects.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/3rdparty/v8/src/objects.cc b/src/3rdparty/v8/src/objects.cc index 0d3836b..81cd105 100644 --- a/src/3rdparty/v8/src/objects.cc +++ b/src/3rdparty/v8/src/objects.cc @@ -11710,6 +11710,7 @@ class SymbolKey : public HashTableKey { if (map != NULL) { string_->set_map_no_write_barrier(map); ASSERT(string_->IsSymbol()); + SeqString::cast(string_)->set_symbol_id(0); return string_; } // Otherwise allocate a new symbol. -- cgit v1.2.3