Bug 253666 - Worklet.prototype.constructor is incorrect
Summary: Worklet.prototype.constructor is incorrect
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-09 12:00 PST by Don Olmstead
Modified: 2023-03-09 19:18 PST (History)
2 users (show)

See Also:


Attachments
Generated file (11.30 KB, text/plain)
2023-03-09 12:00 PST, Don Olmstead
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2023-03-09 12:00:25 PST
Created attachment 465378 [details]
Generated file

In non-unified builds the value `JSWorkletPrototypeTableValues` is reported as unused in the generated `JSWorklet.cpp`.

/* Hash table for prototype */

static const HashTableValue JSWorkletPrototypeTableValues[] =
{
    { "constructor"_s, static_cast<unsigned>(PropertyAttribute::DontEnum), NoIntrinsic, { HashTableValue::GetterSetterType, jsWorkletConstructor, 0 } },
};
Comment 1 Don Olmstead 2023-03-09 12:04:18 PST
[1329/4747] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/JSWorklet.cpp.o
FAILED:
C:/GitHub/WebKit/WebKitBuild/clang-16/WebCore/DerivedSources/JSWorklet.cpp:135:29: error: unused variable 'JSWorkletPrototypeTableValues' [-Werror,-Wunused-const-variable]
static const HashTableValue JSWorkletPrototypeTableValues[] =
                            ^
1 error generated.
Comment 2 Chris Dumez 2023-03-09 12:43:51 PST
Pull request: https://github.com/WebKit/WebKit/pull/11322
Comment 3 EWS 2023-03-09 19:17:10 PST
Committed 261483@main (1976601ac162): <https://commits.webkit.org/261483@main>

Reviewed commits have been landed. Closing PR #11322 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-03-09 19:18:17 PST
<rdar://problem/106533500>