Skip to content

Commit 2a1570e

Browse files
jeisingerCommit bot
authored andcommitted
Temporarily undeprecate ForceSet
I first need to figure out what to do about window.document before we can deprecate this: window.document is a regular accessor, however, once the window navigated from about:blank, its value will never change. Blink uses ForceSet to then replace the accessor with a data constant which has way better performance than invoking the accessor all the time. Since the accessor, however, is installed as read only & non-configurable, there is no spec compliant way to pull this off right now BUG=chromium:595601 [email protected] LOG=y Review URL: https://codereview.chromium.org/1816033002 Cr-Commit-Position: refs/heads/master@{#34919}
1 parent 8872ec5 commit 2a1570e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/v8.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,10 +2683,10 @@ class V8_EXPORT Object : public Value {
26832683
V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty",
26842684
bool ForceSet(Local<Value> key, Local<Value> value,
26852685
PropertyAttribute attribs = None));
2686-
V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty",
2687-
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
2688-
Local<Value> value,
2689-
PropertyAttribute attribs = None));
2686+
V8_DEPRECATE_SOON("Use CreateDataProperty / DefineOwnProperty",
2687+
Maybe<bool> ForceSet(Local<Context> context,
2688+
Local<Value> key, Local<Value> value,
2689+
PropertyAttribute attribs = None));
26902690

26912691
V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
26922692
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,

0 commit comments

Comments
 (0)