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

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

Side-by-side diff isn't available for this file because of its large size.
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, 3 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 | « karma.conf.js ('k') | lib/js/common/dart_sdk.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/js/amd/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/js/amd/dart_sdk.js
similarity index 99%
copy from lib/runtime/dart_sdk.js
copy to lib/js/amd/dart_sdk.js
index 99b1c89f75145e4ec685506a9ad86a3427f2a190..144474b2ab6e39cff3fe5ece2a786f3eb6c25930 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/js/amd/dart_sdk.js
@@ -1,5 +1,4 @@
-dart_library.library('dart_sdk', null, /* Imports */[
-], function load__dart_sdk(exports) {
+define([], 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;
}
@@ -84184,34 +84183,36 @@ dart_library.library('dart_sdk', null, /* Imports */[
});
dart.registerExtension(dart.global.SQLTransaction, web_sql.SqlTransaction);
// Exports:
- exports.dart = dart;
- exports.dartx = dartx;
- exports._debugger = _debugger;
- exports._foreign_helper = _foreign_helper;
- exports._interceptors = _interceptors;
- exports._internal = _internal;
- exports._isolate_helper = _isolate_helper;
- exports._js_embedded_names = _js_embedded_names;
- exports._js_helper = _js_helper;
- exports._js_mirrors = _js_mirrors;
- exports._js_primitives = _js_primitives;
- exports._metadata = _metadata;
- exports._native_typed_data = _native_typed_data;
- exports.async = async;
- exports.collection = collection;
- exports.convert = convert;
- exports.core = core;
- exports.isolate = isolate;
- exports.js = js;
- exports.js_util = js_util;
- exports.math = math;
- exports.mirrors = mirrors;
- exports.typed_data = typed_data;
- exports.indexed_db = indexed_db;
- exports.html = html$;
- exports.html_common = html_common;
- exports.svg = svg$;
- exports.web_audio = web_audio;
- exports.web_gl = web_gl;
- exports.web_sql = web_sql;
+ return {
+ dart: dart,
+ dartx: dartx,
+ _debugger: _debugger,
+ _foreign_helper: _foreign_helper,
+ _interceptors: _interceptors,
+ _internal: _internal,
+ _isolate_helper: _isolate_helper,
+ _js_embedded_names: _js_embedded_names,
+ _js_helper: _js_helper,
+ _js_mirrors: _js_mirrors,
+ _js_primitives: _js_primitives,
+ _metadata: _metadata,
+ _native_typed_data: _native_typed_data,
+ async: async,
+ collection: collection,
+ convert: convert,
+ core: core,
+ isolate: isolate,
+ js: js,
+ js_util: js_util,
+ math: math,
+ mirrors: mirrors,
+ typed_data: typed_data,
+ indexed_db: indexed_db,
+ html: html$,
+ html_common: html_common,
+ svg: svg$,
+ web_audio: web_audio,
+ web_gl: web_gl,
+ web_sql: web_sql
+ };
});
« no previous file with comments | « karma.conf.js ('k') | lib/js/common/dart_sdk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698