Index: sdk/lib/_internal/compiler/js_lib/isolate_serialization.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/isolate_serialization.dart b/sdk/lib/_internal/compiler/js_lib/isolate_serialization.dart |
index 51a294393e9052a81f83a4559e0b0bff86493249..9230bba9ff3e37e81bdacb6fde5929e2ab03e1d7 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/isolate_serialization.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/isolate_serialization.dart |
@@ -165,6 +165,7 @@ class _Serializer { |
} |
serializeDartObject(x) { |
+ if (!isDartObject(x)) unsupported(x); |
var classExtractor = JS_EMBEDDED_GLOBAL('', CLASS_ID_EXTRACTOR); |
var fieldsExtractor = JS_EMBEDDED_GLOBAL('', CLASS_FIELDS_EXTRACTOR); |
String classId = JS('String', '#(#)', classExtractor, x); |