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

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

Issue 791543004: Revert "Isolates: allow sending of arbitrary objects in dart2js." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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: sdk/lib/_internal/compiler/js_lib/native_helper.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/native_helper.dart b/sdk/lib/_internal/compiler/js_lib/native_helper.dart
index 42c5a95c6520d1d3a513b2851286d033854a4193..7de3c6fb634a4f0fa29faa7f89138f08ca17cbb9 100644
--- a/sdk/lib/_internal/compiler/js_lib/native_helper.dart
+++ b/sdk/lib/_internal/compiler/js_lib/native_helper.dart
@@ -443,11 +443,8 @@ applyHooksTransformer(transformer, hooks) {
const _baseHooks = const JS_CONST(r'''
function() {
function typeNameInChrome(o) {
- var constructor = o.constructor;
- if (constructor) {
- var name = constructor.name;
- if (name) return name;
- }
+ var name = o.constructor.name;
+ if (name) return name;
var s = Object.prototype.toString.call(o);
return s.substring(8, s.length - 1);
}
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_helper.dart ('k') | sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698