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

Unified Diff: sdk/lib/_internal/compiler/js_lib/js_helper.dart

Issue 1073273002: dart2js: Fix csp minified. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload Created 5 years, 8 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 | « no previous file | tests/html/canvas_pixel_array_type_alias_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/js_lib/js_helper.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/js_helper.dart b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
index 2248dc6ef575f2e5c520a19db96778f89f5b9ee7..c2d26ff6029d370bb550d704d0e1ea60ccc402a2 100644
--- a/sdk/lib/_internal/compiler/js_lib/js_helper.dart
+++ b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
@@ -726,7 +726,7 @@ class Primitives {
// the name out of that. If the decompiled name is a string containing an
// identifier, we use that instead of the very generic 'Object'.
var decompiled =
- JS('var', r'#.match(/^\s*function\s*(\S*)\s*\(/)[1]',
+ JS('var', r'#.match(/^\s*function\s*([\w$]*)\s*\(/)[1]',
JS('var', r'String(#.constructor)', object));
if (decompiled is String)
if (JS('bool', r'/^\w+$/.test(#)', decompiled))
« no previous file with comments | « no previous file | tests/html/canvas_pixel_array_type_alias_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698