Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: runtime/vm/exceptions.cc

Issue 1690903003: Remove support for Javascript warnings in the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.cc
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc
index 7cabfefcf4c4ae4c3f530f9f6fe4cb637cf88988..27b3852a661b41583d0cbba8f9a26ab5bc6cd040 100644
--- a/runtime/vm/exceptions.cc
+++ b/runtime/vm/exceptions.cc
@@ -635,14 +635,6 @@ RawObject* Exceptions::Create(ExceptionType type, const Array& arguments) {
library = Library::IsolateLibrary();
class_name = &Symbols::IsolateSpawnException();
break;
- case kJavascriptIntegerOverflowError:
- library = Library::CoreLibrary();
- class_name = &Symbols::JavascriptIntegerOverflowError();
- break;
- case kJavascriptCompatibilityError:
- library = Library::CoreLibrary();
- class_name = &Symbols::JavascriptCompatibilityError();
- break;
case kAssertion:
library = Library::CoreLibrary();
class_name = &Symbols::AssertionError();
@@ -680,15 +672,6 @@ RawObject* Exceptions::Create(ExceptionType type, const Array& arguments) {
}
-// Throw JavascriptCompatibilityError exception.
-void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) {
- const Array& exc_args = Array::Handle(Array::New(1));
- const String& msg_str = String::Handle(String::New(msg));
- exc_args.SetAt(0, msg_str);
- Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args);
-}
-
-
static bool IsLikelyInternalDart2JSCrash(const Stacktrace& stacktrace) {
Function& function = Function::Handle();
String& name = String::Handle();
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698