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

Unified Diff: test/codegen/expect/server_mode/dev_compiler/runtime/harmony_feature_check.js

Issue 998043002: Fixes in codegen and test script (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
Index: test/codegen/expect/server_mode/dev_compiler/runtime/harmony_feature_check.js
diff --git a/test/codegen/expect/server_mode/dev_compiler/runtime/harmony_feature_check.js b/test/codegen/expect/server_mode/dev_compiler/runtime/harmony_feature_check.js
deleted file mode 100644
index 9007bc75d6f8a5b8c704389dccf3b8339ad0a2f3..0000000000000000000000000000000000000000
--- a/test/codegen/expect/server_mode/dev_compiler/runtime/harmony_feature_check.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Feature test for harmony support, alert if not present.
-(function () {
- try {
- var f = new Function(
- '"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; };' +
- '};' +
- 'return new C(42).foo()(100);');
- if (f() == 142) return; // supported!
- } catch (e) {
- }
-
- var message = 'This script needs EcmaScript 6 features ' +
- 'like `class` and `=>`. Please run in a browser with support, ' +
- 'for example: chrome --js-flags="--harmony-arrow-functions' +
- ' --harmony-classes --harmony-computed-property-names"';
- console.error(message);
- alert(message);
-
-})();

Powered by Google App Engine
This is Rietveld 408576698