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

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

Issue 1132113003: fixes #177, FunctionDeclarationStatement and closing over `this` (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
Index: lib/runtime/dart/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index e106c261f595c37d6dd0fb73fc6cfbd3931d9040..d1b98c1ceacf3b19260b01336c41490486f113fa 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -2466,7 +2466,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
// Function unwrapException: (dynamic) → dynamic
function unwrapException(ex) {
// Function saveStackTrace: (dynamic) → dynamic
- function saveStackTrace(error) {
+ let saveStackTrace = error => {
if (dart.is(error, core.Error)) {
let thrownStackTrace = error.$thrownJsError;
if (thrownStackTrace == null) {
@@ -2474,7 +2474,7 @@ var _isolate_helper = dart.lazyImport(_isolate_helper);
}
}
return error;
- }
+ };
if (ex == null)
return null;
if (typeof ex !== "object")

Powered by Google App Engine
This is Rietveld 408576698