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

Unified Diff: lib/runtime/dart/typed_data.js

Issue 1233553005: Fixes #254 - Better stacktrace support (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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
Index: lib/runtime/dart/typed_data.js
diff --git a/lib/runtime/dart/typed_data.js b/lib/runtime/dart/typed_data.js
index b6e6cd5b45fd85387ba6c250d32bf658ee21f8e9..aff34396350cfcc4ee61dc91bc3c532bdc1821f5 100644
--- a/lib/runtime/dart/typed_data.js
+++ b/lib/runtime/dart/typed_data.js
@@ -214,10 +214,10 @@ dart_library.library('dart/typed_data', null, /* Imports */[
Uint32List.BYTES_PER_ELEMENT = 4;
class Int64List extends core.Object {
static new(length) {
- throw new core.UnsupportedError("Int64List not supported by dart2js.");
+ dart.throw_(new core.UnsupportedError("Int64List not supported by dart2js."));
}
static fromList(elements) {
- throw new core.UnsupportedError("Int64List not supported by dart2js.");
+ dart.throw_(new core.UnsupportedError("Int64List not supported by dart2js."));
}
static view(buffer, offsetInBytes, length) {
if (offsetInBytes === void 0)
@@ -238,10 +238,10 @@ dart_library.library('dart/typed_data', null, /* Imports */[
Int64List.BYTES_PER_ELEMENT = 8;
class Uint64List extends core.Object {
static new(length) {
- throw new core.UnsupportedError("Uint64List not supported by dart2js.");
+ dart.throw_(new core.UnsupportedError("Uint64List not supported by dart2js."));
}
static fromList(elements) {
- throw new core.UnsupportedError("Uint64List not supported by dart2js.");
+ dart.throw_(new core.UnsupportedError("Uint64List not supported by dart2js."));
}
static view(buffer, offsetInBytes, length) {
if (offsetInBytes === void 0)

Powered by Google App Engine
This is Rietveld 408576698