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

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

Issue 1042943003: fixes private named constructors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_interceptors.js
diff --git a/lib/runtime/dart/_interceptors.js b/lib/runtime/dart/_interceptors.js
index a57f1342d03af83ff691c0d03e339dd306c7686a..7cf7217cedc0817c11d004db67fc7eb272b983eb 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -25,28 +25,28 @@ var _interceptors;
JSArray() {
super.Interceptor();
}
- JSArray$fixed(length) {
+ fixed(length) {
if (dart.notNull(!(typeof length == 'number')) || dart.notNull(length) < 0) {
throw new core.ArgumentError(`Length must be a non-negative integer: ${length}`);
}
return new JSArray.markFixed(new Array(length));
}
- JSArray$emptyGrowable() {
+ emptyGrowable() {
return new JSArray.markGrowable([]);
}
- JSArray$growable(length) {
+ growable(length) {
if (dart.notNull(!(typeof length == 'number')) || dart.notNull(length) < 0) {
throw new core.ArgumentError(`Length must be a non-negative integer: ${length}`);
}
return new JSArray.markGrowable(new Array(length));
}
- JSArray$typed(allocation) {
+ typed(allocation) {
return dart.as(allocation, JSArray$(E));
}
- JSArray$markFixed(allocation) {
+ markFixed(allocation) {
return dart.as(JSArray.markFixedList(new JSArray.typed(allocation)), JSArray$(E));
}
- JSArray$markGrowable(allocation) {
+ markGrowable(allocation) {
return dart.as(new JSArray.typed(allocation), JSArray$(E));
}
static markFixedList(list) {
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698