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

Unified Diff: test/codegen/expect/js/js.js

Issue 1448993002: Switch ddc to use @JS instead of @JSName (Closed) Base URL: git://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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/codegen/expect/dom/dom.js ('k') | test/codegen/expect/js/js.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/js/js.js
diff --git a/test/codegen/expect/js/js.js b/test/codegen/expect/js/js.js
new file mode 100644
index 0000000000000000000000000000000000000000..50a6e0de7be82f703c21b7093e77471aac444cc6
--- /dev/null
+++ b/test/codegen/expect/js/js.js
@@ -0,0 +1,31 @@
+dart_library.library('js/js', null, /* Imports */[
+ "dart/_runtime",
+ 'dart/js',
+ 'dart/core'
+], /* Lazy imports */[
+], function(exports, dart, js, core) {
+ 'use strict';
+ let dartx = dart.dartx;
+ dart.export(exports, js, ['allowInterop', 'allowInteropCaptureThis'], []);
+ class JS extends core.Object {
+ JS(name) {
+ if (name === void 0)
+ name = null;
+ this.name = name;
+ }
+ }
+ dart.setSignature(JS, {
+ constructors: () => ({JS: [JS, [], [core.String]]})
+ });
+ class _Anonymous extends core.Object {
+ _Anonymous() {
+ }
+ }
+ dart.setSignature(_Anonymous, {
+ constructors: () => ({_Anonymous: [_Anonymous, []]})
+ });
+ let anonymous = dart.const(new _Anonymous());
+ // Exports:
+ exports.JS = JS;
+ exports.anonymous = anonymous;
+});
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/js/js.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698