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

Unified Diff: tests/compiler/dart2js_native/issue9182_test.dart

Issue 2990083002: dart2js_native tests: Migrate 'native STRING' to JS-calls - part 2/2 (Closed)
Patch Set: remove defunct comments Created 3 years, 5 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: tests/compiler/dart2js_native/issue9182_test.dart
diff --git a/tests/compiler/dart2js_native/issue9182_test.dart b/tests/compiler/dart2js_native/issue9182_test.dart
index 8473d5f6c3bafc34cf57e97de9eb47c50106eb7a..62a0a60368590f2b90da489db06b77303f567261 100644
--- a/tests/compiler/dart2js_native/issue9182_test.dart
+++ b/tests/compiler/dart2js_native/issue9182_test.dart
@@ -24,11 +24,14 @@ class Bar {
}
}
-void setup() native r"""
-function A(){}
-makeA = function() { return new A; };
-self.nativeConstructor(A);
-""";
+void setup() {
+ JS('', r"""
+(function(){
+ function A(){}
+ makeA = function() { return new A() };
+ self.nativeConstructor(A);
+})()""");
+}
makeA() native;
« no previous file with comments | « tests/compiler/dart2js_native/fixup_get_tag_test.dart ('k') | tests/compiler/dart2js_native/jsobject_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698