Commit d79be403 authored by iseki's avatar iseki Committed by Commit bot

Use Object.preventExtensions instead of Object.seal.

* Object.seal use the more memory than Object.preventExtensions.

BUG=402708

Review URL: https://codereview.chromium.org/551353002

Cr-Commit-Position: refs/heads/master@{#293922}
parent aefb2793
...@@ -115,7 +115,9 @@ var ProgressCenterItem = function() { ...@@ -115,7 +115,9 @@ var ProgressCenterItem = function() {
*/ */
this.cancelCallback = null; this.cancelCallback = null;
Object.seal(this); // This object is instantiated many time. Object.seal use more memory
// than Object.preventExtensions (crbug.com/412307)
Object.preventExtensions(this);
}; };
ProgressCenterItem.prototype = { ProgressCenterItem.prototype = {
......
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