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

Unified Diff: lib/runtime/harmony_feature_check.js

Issue 1169473003: fixes #43, remove => workaround (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
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/harmony_feature_check.js
diff --git a/lib/runtime/harmony_feature_check.js b/lib/runtime/harmony_feature_check.js
index 9007bc75d6f8a5b8c704389dccf3b8339ad0a2f3..c2f80e44dd5139a6e15d73f3cb1a0397194c46b5 100644
--- a/lib/runtime/harmony_feature_check.js
+++ b/lib/runtime/harmony_feature_check.js
@@ -9,9 +9,7 @@
'"use strict";'+
'class C {' +
'constructor(x) { this.x = x; };' +
- // TODO(jmesserly): arrow functions on V8 don't have lexical this yet.
- // https://code.google.com/p/v8/issues/detail?id=2700
- '["foo"]() { var self = this; return x => self.x + x; };' +
+ '["foo"]() { return x => this.x + x; };' +
'};' +
'return new C(42).foo()(100);');
if (f() == 142) return; // supported!
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698