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

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

Issue 1681293005: Fix JS-intrinsic definition of SDK classes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.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 | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_runtime.js
diff --git a/lib/runtime/dart/_runtime.js b/lib/runtime/dart/_runtime.js
index 8a986bce275276f0102decb8e2f3f7ba3c1925a4..9906e2d1ea9cd165d935bd402552e0630c53a839 100644
--- a/lib/runtime/dart/_runtime.js
+++ b/lib/runtime/dart/_runtime.js
@@ -265,7 +265,7 @@ dart_library.library('dart/_runtime', null, /* Imports */[
return onValue();
});
}
- const _AsyncStarStreamController = class _AsyncStarStreamController {
+ class _AsyncStarStreamController {
constructor(generator, T, args) {
this.isAdding = false;
this.isWaiting = false;
@@ -367,7 +367,7 @@ dart_library.library('dart/_runtime', null, /* Imports */[
if (!this.controller.hasListener) return;
this.controller.addError(error, stackTrace);
}
- };
+ }
function asyncStar(gen, T, ...args) {
return new _AsyncStarStreamController(gen, T, args).controller.stream;
}
@@ -631,7 +631,7 @@ dart_library.library('dart/_runtime', null, /* Imports */[
}
return obj.noSuchMethod(invocation);
}
- const JsIterator = class JsIterator {
+ class JsIterator {
constructor(dartIterator) {
this.dartIterator = dartIterator;
}
@@ -640,7 +640,7 @@ dart_library.library('dart/_runtime', null, /* Imports */[
let done = !i.moveNext();
return {done: done, value: done ? void 0 : i.current};
}
- };
+ }
function fn(closure, ...args) {
if (args.length == 1) {
defineLazyProperty(closure, _runtimeType, {get: args[0]});
@@ -733,36 +733,36 @@ dart_library.library('dart/_runtime', null, /* Imports */[
const implements_ = Symbol("implements");
const metadata = Symbol("metadata");
const _TypeRepBase = LazyTagged(() => core.Type);
- const TypeRep = class TypeRep extends _TypeRepBase {
+ class TypeRep extends _TypeRepBase {
get name() {
return this.toString();
}
- };
- const Dynamic = class Dynamic extends TypeRep {
+ }
+ class Dynamic extends TypeRep {
toString() {
return "dynamic";
}
- };
+ }
const dynamicR = new Dynamic();
- const Void = class Void extends TypeRep {
+ class Void extends TypeRep {
toString() {
return "void";
}
- };
+ }
const voidR = new Void();
- const Bottom = class Bottom extends TypeRep {
+ class Bottom extends TypeRep {
toString() {
return "bottom";
}
- };
+ }
const bottom = new Bottom();
- const JSObject = class JSObject extends TypeRep {
+ class JSObject extends TypeRep {
toString() {
return "NativeJavaScriptObject";
}
- };
+ }
const jsobject = new JSObject();
- const AbstractFunctionType = class AbstractFunctionType extends TypeRep {
+ class AbstractFunctionType extends TypeRep {
constructor() {
super();
this._stringValue = null;
@@ -805,8 +805,8 @@ dart_library.library('dart/_runtime', null, /* Imports */[
this._stringValue = buffer;
return buffer;
}
- };
- const FunctionType = class FunctionType extends AbstractFunctionType {
+ }
+ class FunctionType extends AbstractFunctionType {
constructor(definite, returnType, args, optionals, named) {
super();
this.definite = definite;
@@ -850,8 +850,8 @@ dart_library.library('dart/_runtime', null, /* Imports */[
this.named = r;
}
}
- };
- const Typedef = class Typedef extends AbstractFunctionType {
+ }
+ class Typedef extends AbstractFunctionType {
constructor(name, closure) {
super();
this._name = name;
@@ -885,7 +885,7 @@ dart_library.library('dart/_runtime', null, /* Imports */[
get metadata() {
return this.functionType.metadata;
}
- };
+ }
function _functionType(definite, returnType, args, extra) {
let optionals;
let named;
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698