Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index e03b85028fe1365a36c8b8f2b9d9db42ccff1b7c..e6d498b424734f37f457309839a0a533222889f1 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -22,6 +22,14 @@ static Object* ThrowRedeclarationError(Isolate* isolate, Handle<String> name) { |
} |
+RUNTIME_FUNCTION(Runtime_ThrowConstAssignError) { |
+ HandleScope scope(isolate); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, |
+ NewTypeError("harmony_const_assign", HandleVector<Object>(NULL, 0))); |
+} |
+ |
+ |
// May throw a RedeclarationError. |
static Object* DeclareGlobals(Isolate* isolate, Handle<GlobalObject> global, |
Handle<String> name, Handle<Object> value, |