-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failuresweb-dart2js
Description
This code is trying to say "Instance of 'foo'"
Not all objects have a constructor with a name, so name$ is 'undefined'.
This causes an error in $.charCodeAt.
$.objectToString = function(object) {
var name$ = (object.constructor.name);
if (
name$ = $.substring$1(name$, 1);
}
return 'Instance of '' +
};
Several tests print objects and fail because of this problem.
I suggest taking the name out of the string returned by Object.prototype.toString.call(receiver)
Metadata
Metadata
Assignees
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failuresweb-dart2js