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

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

Issue 1170813008: fixes detection of SDK libraries (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 6 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/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index 88220b5a26f6c5c979f9e5f1ea1663c659ac0136..270c436b86c3e6a545191112688533dbed09443b 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -1,10 +1,10 @@
dart.library('dart/_js_helper', null, /* Imports */[
'dart/core',
'dart/collection',
+ 'dart/_interceptors',
'dart/_foreign_helper'
], /* Lazy imports */[
- 'dart/_interceptors'
-], function(exports, core, collection, _foreign_helper, _interceptors) {
+], function(exports, core, collection, _interceptors, _foreign_helper) {
'use strict';
class NoThrows extends core.Object {
NoThrows() {
@@ -1071,12 +1071,7 @@ dart.library('dart/_js_helper', null, /* Imports */[
dart.setSignature(JSName, {
constructors: () => ({JSName: [JSName, [core.String]]})
});
- dart.defineLazyClass(exports, {
- get JavaScriptIndexingBehavior() {
- class JavaScriptIndexingBehavior extends _interceptors.JSMutableIndexable {}
- return JavaScriptIndexingBehavior;
- }
- });
+ class JavaScriptIndexingBehavior extends _interceptors.JSMutableIndexable {}
class TypeErrorImplementation extends core.Error {
TypeErrorImplementation(value, type) {
this.message = `type '${Primitives.objectTypeName(value)}' is not a subtype ` + `of type '${type}'`;
@@ -1197,6 +1192,7 @@ dart.library('dart/_js_helper', null, /* Imports */[
exports.Creates = Creates;
exports.Returns = Returns;
exports.JSName = JSName;
+ exports.JavaScriptIndexingBehavior = JavaScriptIndexingBehavior;
exports.TypeErrorImplementation = TypeErrorImplementation;
exports.CastErrorImplementation = CastErrorImplementation;
exports.FallThroughErrorImplementation = FallThroughErrorImplementation;

Powered by Google App Engine
This is Rietveld 408576698