Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 351d14adc46dc45190c180dde3b5b20a047be45e..c373e52fcf31071cbb22f4df018fdc4d5f30dd3b 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -576,7 +576,7 @@ Handle<JSFunction> Genesis::GetThrowTypeErrorFunction() { |
throw_type_error_function->shared()->set_code(*code); |
throw_type_error_function->shared()->DontAdaptArguments(); |
- JSObject::PreventExtensions(throw_type_error_function); |
+ JSObject::PreventExtensions(throw_type_error_function).Assert(); |
} |
return throw_type_error_function; |
} |