Index: src/runtime/runtime-symbol.cc |
diff --git a/src/runtime/runtime-symbol.cc b/src/runtime/runtime-symbol.cc |
index db2d7ef05f6d348c55068916b93a5aff8aef8377..300a6439b1279c1d6cacec712ac22583935e5600 100644 |
--- a/src/runtime/runtime-symbol.cc |
+++ b/src/runtime/runtime-symbol.cc |
@@ -16,7 +16,7 @@ RUNTIME_FUNCTION(Runtime_CreateSymbol) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
- RUNTIME_ASSERT(name->IsString() || name->IsUndefined(isolate)); |
+ CHECK(name->IsString() || name->IsUndefined(isolate)); |
Handle<Symbol> symbol = isolate->factory()->NewSymbol(); |
if (name->IsString()) symbol->set_name(*name); |
return *symbol; |
@@ -27,7 +27,7 @@ RUNTIME_FUNCTION(Runtime_CreatePrivateSymbol) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
- RUNTIME_ASSERT(name->IsString() || name->IsUndefined(isolate)); |
+ CHECK(name->IsString() || name->IsUndefined(isolate)); |
Handle<Symbol> symbol = isolate->factory()->NewPrivateSymbol(); |
if (name->IsString()) symbol->set_name(*name); |
return *symbol; |