Bug 174275 - [JSC] Add support overriding of the runtime error messages without adding new op_codes
Summary: [JSC] Add support overriding of the runtime error messages without adding new...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 173381
  Show dependency treegraph
 
Reported: 2017-07-07 14:07 PDT by GSkachkov
Modified: 2018-04-18 04:15 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GSkachkov 2017-07-07 14:07:36 PDT
JSC should support overriding of the runtime error messages, to show more suitable error message. i.e. https://webkit.org/b/169293. There is expected more such types of modification of already existed error messages and this should be done without adding new op_codes check, to prevent performance degradation.
The idea is use some metadata in CodeBlock, and after throwing check if error message that was thrown from some byte code operation was overridden in CodeBlock metadata.
Comment 1 GSkachkov 2017-07-07 14:09:25 PDT
Ohh, wrong link to example, should be https://webkit.org/b/1173381