Commit b66d8ae9 authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[DevTools] remove old console.assert hack

New console.assert implementation is faster then any hacks.

BUG=chromium:663845
R=lushnikov@chromium.org

Review-Url: https://codereview.chromium.org/2525543002
Cr-Commit-Position: refs/heads/master@{#435081}
parent 6c48fe45
...@@ -26,15 +26,6 @@ ...@@ -26,15 +26,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
// FIXME: This performance optimization should be moved to blink so that all developers could enjoy it.
// console is retrieved with V8Window.getAttribute method which is slow. Here we copy it to a js variable for faster access.
console = console;
console.__originalAssert = console.assert;
console.assert = function(value, message) {
if (value)
return;
console.__originalAssert(value, message);
};
/** @typedef {Array|NodeList|Arguments|{length: number}} */ /** @typedef {Array|NodeList|Arguments|{length: number}} */
var ArrayLike; var ArrayLike;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment