Skip to content

Commit 02eb528

Browse files
committed
[BlinkHelpers] Fix TextLength type description on WTF::StringImpl
1 parent 9fa0790 commit 02eb528

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/target-specific/chromium/blink/wtf-helpers/wtf-helpers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ Loader.OnLoad(function() {
3030
}
3131
}));
3232

33-
DbgObject.AddTypeDescription(Chromium.RendererProcessType("WTF::StringImpl"), "TextLength", false, UserEditableFunctions.Create((wtfString) => {
34-
return wtfString.f("impl_").f("ptr_")
35-
.then((wtfStringImpl) => !wtfStringImpl.isNull() ? wtfStringImpl.f("length_").val() : 0);
33+
DbgObject.AddTypeDescription(Chromium.RendererProcessType("WTF::StringImpl"), "TextLength", false, UserEditableFunctions.Create((wtfStringImpl) => {
34+
return !wtfStringImpl.isNull() ? wtfStringImpl.f("length_") : 0;
3635
}));
3736

3837
DbgObject.AddTypeDescription(Chromium.RendererProcessType("WTF::StringImpl"), "is_8bit_", false, UserEditableFunctions.Create((wtfStringImpl) => {

0 commit comments

Comments
 (0)