From 23d5c7180bd071ac99da8235b949046b38240fe0 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Fri, 5 Mar 2010 22:36:42 -0500 Subject: [PATCH] Keep jasmine.Matchers.pp() but throw an error message. --- src/Matchers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Matchers.js b/src/Matchers.js index 672e030..10f26a6 100644 --- a/src/Matchers.js +++ b/src/Matchers.js @@ -12,6 +12,10 @@ jasmine.Matchers = function(env, actual, spec, opt_isNot) { this.reportWasCalled_ = false; }; +jasmine.Matchers.pp = function(str) { + throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!"); +}; + /** @deprecated */ jasmine.Matchers.prototype.report = function(result, failing_message, details) { // todo: report a deprecation warning [xw]