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

Unified Diff: frog/leg/lib/js_helper.dart

Issue 9665001: Implement constant maps. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove trailing whitespace. Created 8 years, 9 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
« no previous file with comments | « frog/leg/lib/constant_map.dart ('k') | frog/leg/tree/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/lib/js_helper.dart
diff --git a/frog/leg/lib/js_helper.dart b/frog/leg/lib/js_helper.dart
index 835ff0a6e7403fc81e0beb4662e10428eb36f3c0..b6ff89060e426cc9a57743f913920daf8c524af4 100644
--- a/frog/leg/lib/js_helper.dart
+++ b/frog/leg/lib/js_helper.dart
@@ -6,6 +6,7 @@
#import('coreimpl.dart');
+#source('constant_map.dart');
#source('date_helper.dart');
#source('regexp_helper.dart');
#source('string_helper.dart');
@@ -1368,3 +1369,11 @@ class StackTrace {
StackTrace(this.stack);
String toString() => stack != null ? stack : '';
}
+
+bool jsHasOwnProperty(var jsObject, String property) {
+ return JS('bool', @'$0.hasOwnProperty($1)', jsObject, property);
+}
+
+jsPropertyAccess(var jsObject, String property) {
+ return JS('var', @'$0[$1]', jsObject, property);
+}
« no previous file with comments | « frog/leg/lib/constant_map.dart ('k') | frog/leg/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698