Skip to content

Commit

Permalink
Test some stuff before cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic authored and foolip committed Jul 10, 2019
1 parent efc79ee commit 84af6c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@
});
t.step(function() {
const error = frames[0].URIError("some message");
assert_equals(Object.getPrototypeOf(error), frames[0].prototype, "Checking prototype before cloning");
assert_equals(error.constructor, frames[0].URIError, "Checking constructor before cloning");
assert_equals(error.name, "URIError", "Checking name before cloning");
error.foo = "bar";
worker.postMessage(error);
});
Expand Down

0 comments on commit 84af6c8

Please sign in to comment.