Index: src/runtime/runtime-symbol.cc |
diff --git a/src/runtime/runtime-symbol.cc b/src/runtime/runtime-symbol.cc |
index f89ab34044ec517d256fa48e7b7259ca324e7295..db2d7ef05f6d348c55068916b93a5aff8aef8377 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()); |
+ RUNTIME_ASSERT(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()); |
+ RUNTIME_ASSERT(name->IsString() || name->IsUndefined(isolate)); |
Handle<Symbol> symbol = isolate->factory()->NewPrivateSymbol(); |
if (name->IsString()) symbol->set_name(*name); |
return *symbol; |