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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1896343002: a few small dart:_runtime cleanups (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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:
Download patch
« no previous file with comments | « no previous file | test/codegen/expect/language-all.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 9983df9e5102482737cc09eb0c5bf64fc98c4d10..284f2fca4409cf30f5f7be999cd80ec5388ff569 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -749,18 +749,17 @@ dart_library.library('dart_sdk', null, /* Imports */[
return result;
};
dart.LazyTagged = function(infoFn) {
- class _Tagged {
+ return class _Tagged {
get [dart._runtimeType]() {
return infoFn();
}
- }
- return _Tagged;
+ };
};
dart.read = function(value) {
return value[dart._runtimeType];
};
- dart.tag = function(value, info) {
- value[dart._runtimeType] = info;
+ dart.tag = function(value, t) {
+ value[dart._runtimeType] = t;
};
dart.tagComputed = function(value, compute) {
dart.defineProperty(value, dart._runtimeType, {get: compute});
@@ -983,7 +982,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
return dart.getMethodTypeFromType(type, 'call');
};
dart.isFunctionType = function(type) {
- return type instanceof dart.AbstractFunctionType || type == core.Function;
+ return type instanceof dart.AbstractFunctionType || type === core.Function;
};
dart.isFunctionSubType = function(ft1, ft2) {
if (ft2 == core.Function) {
« no previous file with comments | « no previous file | test/codegen/expect/language-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698