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

Unified Diff: test/js/browser_tests_bootstrap.js

Issue 12457030: [js-interop] Fix function binding and avoid noSuchMethod when using map notation (Closed) Base URL: https://github.com/dart-lang/js-interop.git@master
Patch Set: Fix for constructors plus cleanup Created 7 years, 8 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
« lib/js.dart ('K') | « test/js/browser_tests.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js/browser_tests_bootstrap.js
diff --git a/test/js/browser_tests_bootstrap.js b/test/js/browser_tests_bootstrap.js
index 7fbf367859e019ace71cb4392f0d849d4e90519f..46fe6cf21744bcf3cc9669dfb27cf88ae079133d 100644
--- a/test/js/browser_tests_bootstrap.js
+++ b/test/js/browser_tests_bootstrap.js
@@ -20,14 +20,28 @@ function razzle() {
return x;
}
+function varArgs() {
+ var args = arguments;
+ var sum = 0;
+ for (var i = 0; i < args.length; ++i) {
+ sum += args[i];
+ }
+ return sum;
+}
+
function Foo(a) {
this.a = a;
}
+Foo.b = 38;
+
Foo.prototype.bar = function() {
return this.a;
}
+var container = new Object();
+container.Foo = Foo;
+
function isArray(a) {
return a instanceof Array;
}
« lib/js.dart ('K') | « test/js/browser_tests.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698