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

Unified Diff: test_sources/non_transformed/web/test.js

Issue 580283004: Add JsInitializerGenerator (Closed) Base URL: https://github.com/dart-lang/js-interop.git@master
Patch Set: Created 6 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test_sources/non_transformed/web/generated_code_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_sources/non_transformed/web/test.js
diff --git a/test_sources/non_transformed/web/test.js b/test_sources/non_transformed/web/test.js
index 82b875e61b74067814f5c8566ab3f8838dffa0d0..f89d933ec89bad817a99683ac93a5c4721261cdb 100644
--- a/test_sources/non_transformed/web/test.js
+++ b/test_sources/non_transformed/web/test.js
@@ -43,48 +43,3 @@ function roundTrip(e) {
function isNull(value) {
return value === null;
}
-
-// hand-generated export code derived from test.dart
-
-window.dart = window.dart || {};
-
-window.dart.Object = function DartObject() {
- throw "not allowed";
-};
-
-window.dart.Object._wrapDartObject = function(dartObject) {
- var o = Object.create(window.dart.Object.prototype);
- o.__dart_object__ = dartObject;
- return o;
-};
-
-_export_dart_test(dart);
-
-function _export_dart_test(parent) {
- var lib = parent.test = {};
- _export_dart_test_library(lib);
-}
-
-function _export_dart_test_library(parent) {
- var lib = parent.library = {};
- _export_test_library_ExportMe(lib);
-}
-
-function _export_test_library_ExportMe(parent) {
- var constructor = parent.ExportMe = function ExportMeJs() {
- this.__dart_object__ = constructor._new();
- };
- constructor.prototype = Object.create(dart.Object.prototype);
- constructor.prototype.constructor = constructor;
- constructor._wrapDartObject = function(dartObject) {
- var o = Object.create(constructor.prototype);
- o.__dart_object__ = dartObject;
- return o;
- };
-
- // named constructor
- constructor.named = function ExportMeJs(name) {
- this.__dart_object__ = constructor._new_named(name);
- };
- constructor.named.prototype = constructor.prototype;
-}
« no previous file with comments | « test_sources/non_transformed/web/generated_code_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698