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

Unified Diff: lib/runtime/dart/_js_helper.js

Issue 1207313002: initial sync*, part of #221 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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_helper.js ('k') | lib/runtime/dart/async.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index fb55efec55e4d150d5598429e4da45de7e43890f..2d8b19f46e7a376e9394ccc21768bdfafded584c 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -117,14 +117,14 @@ dart_library.library('dart/_js_helper', null, /* Imports */[
let m = dart.notNull(multiLine) ? 'm' : '';
let i = dart.notNull(caseSensitive) ? '' : 'i';
let g = dart.notNull(global) ? 'g' : '';
- let regexp = function() {
+ let regexp = (function() {
try {
return new RegExp(source, m + i + g);
} catch (e) {
return e;
}
- }();
+ })();
if (regexp instanceof RegExp)
return regexp;
let errorMessage = String(regexp);
« no previous file with comments | « lib/runtime/dart/_isolate_helper.js ('k') | lib/runtime/dart/async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698