3307317454
To match Dart style: https://www.dartlang.org/effective-dart/style/#do-use-curly-braces-for-all-flow-control-structures (also, that's the style we use in our .js runtime files, so that will help with diffs of the js->dart runtime migration from https://github.com/dart-lang/dev_compiler/issues/310) BUG= R=jmesserly@google.com Review URL: https://codereview.chromium.org/1524843002 .
31 lines
776 B
JavaScript
31 lines
776 B
JavaScript
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, []]})
|
|
});
|
|
const anonymous = dart.const(new _Anonymous());
|
|
// Exports:
|
|
exports.JS = JS;
|
|
exports.anonymous = anonymous;
|
|
});
|