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

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

Issue 1145833004: fixes #173, ability to use native JS indexers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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
Index: test/codegen/expect/domtest.js
diff --git a/test/codegen/expect/domtest.js b/test/codegen/expect/domtest.js
new file mode 100644
index 0000000000000000000000000000000000000000..ed1514f3dee3baca5d9daf0ef80d7b66d5d44770
--- /dev/null
+++ b/test/codegen/expect/domtest.js
@@ -0,0 +1,16 @@
+var domtest = dart.defineLibrary(domtest, {});
+var dom = dart.import(dom);
+var core = dart.import(core);
+(function(exports, dom, core) {
+ 'use strict';
+ // Function testNativeIndexers: () → dynamic
+ function testNativeIndexers() {
+ let nodes = dom.document.querySelector('body').childNodes;
+ for (let i = 0; dart.notNull(i) < dart.notNull(nodes.length); i = dart.notNull(i) + 1) {
+ core.print(nodes[i]);
+ core.print(nodes[i] = null);
+ }
+ }
+ // Exports:
+ exports.testNativeIndexers = testNativeIndexers;
+})(domtest, dom, core);

Powered by Google App Engine
This is Rietveld 408576698