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

Unified Diff: lib/js/common/dart_sdk.js

Issue 2249233002: fix #626, add AMD module format and make it default (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged Created 4 years, 4 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 | « lib/js/amd/dart_sdk.js ('k') | lib/js/common/run.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/js/common/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/js/common/dart_sdk.js
similarity index 99%
copy from lib/runtime/dart_sdk.js
copy to lib/js/common/dart_sdk.js
index 99b1c89f75145e4ec685506a9ad86a3427f2a190..415e7f2d37f4cd07fd93ed298d22576aefa5b7a2 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/js/common/dart_sdk.js
@@ -1,5 +1,4 @@
-dart_library.library('dart_sdk', null, /* Imports */[
-], function load__dart_sdk(exports) {
+(function() {
'use strict';
const dart = Object.create(null);
const dartx = Object.create(null);
@@ -1466,7 +1465,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
let src = '';
for (let i = 2; i < dart.notNull(stack[dartx.length]); ++i) {
let frame = stack[dartx.get](i);
- if (!dart.test(frame[dartx.contains]('dev_compiler/lib/runtime/dart_sdk.js'))) {
+ if (!dart.test(frame[dartx.contains]('dart_sdk.js'))) {
src = frame;
break;
}
@@ -84214,4 +84213,4 @@ dart_library.library('dart_sdk', null, /* Imports */[
exports.web_audio = web_audio;
exports.web_gl = web_gl;
exports.web_sql = web_sql;
-});
+})();
« no previous file with comments | « lib/js/amd/dart_sdk.js ('k') | lib/js/common/run.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698