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

Side by Side Diff: test/generated_sdk/lib/_internal/compiler/js_lib/native_helper.dart

Issue 955513008: cleans up sdk patching so we no longer have unresolved names (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of _js_helper; 5 part of _js_helper;
6 6
7 7
8 // TODO(ngeoffray): stop using this method once our optimizers can 8 // TODO(ngeoffray): stop using this method once our optimizers can
9 // change str1.contains(str2) into str1.indexOf(str2) != -1. 9 // change str1.contains(str2) into str1.indexOf(str2) != -1.
10 bool contains(String userAgent, String name) { 10 bool contains(String userAgent, String name) {
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 const _safariHooksTransformer = const JS_CONST(r''' 643 const _safariHooksTransformer = const JS_CONST(r'''
644 function(hooks) { return hooks; } 644 function(hooks) { return hooks; }
645 '''); 645 ''');
646 646
647 647
648 const _dartExperimentalFixupGetTagHooksTransformer = const JS_CONST(r''' 648 const _dartExperimentalFixupGetTagHooksTransformer = const JS_CONST(r'''
649 function(hooks) { 649 function(hooks) {
650 if (typeof dartExperimentalFixupGetTag != "function") return hooks; 650 if (typeof dartExperimentalFixupGetTag != "function") return hooks;
651 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); 651 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
652 }'''); 652 }''');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698