-
-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove misleading 'own' from exception message
The property descriptor is recursively retrieved up the prototype chain. It can by thus often _not_ be owned by the object. Therefore the previous error message was wrong. We even have an explicit test for the sandbox.replace* methods that states this: it("should replace an inherited property", ... This is in opposition to stubs and spies which refuse to replace fields that are not owned by the object, which is somewhat strange ...
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters