Bug 158790 - Assertion failure when initializing Intl prototypes
Summary: Assertion failure when initializing Intl prototypes
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-15 10:22 PDT by André Bargull
Modified: 2017-04-25 08:23 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Bargull 2016-06-15 10:22:46 PDT
SVN: rev202088
Build with: perl Tools/Scripts/build-jsc --gtk --debug


The following test case triggers this assertion error:
---
ASSERTION FAILED: !state.hadException()
---


Test case:
---
Object.prototype.localeMatcher = "invalid";
Intl.NumberFormat.prototype.resolvedOptions();
---


Stack trace:
---
#0  0x00007ffff6de7098 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:317
#1  0x00007ffff6b837b8 in JSC::IntlNumberFormat::resolvedOptions (this=0x7fffaf1e3eb0, state=...) at ../../Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:492
#2  0x00007ffff6b85d5f in JSC::IntlNumberFormatPrototypeFuncResolvedOptions (state=0x7fffffffcb40)
    at ../../Source/JavaScriptCore/runtime/IntlNumberFormatPrototype.cpp:149
#3  0x00007fffb0bff028 in ?? ()
#4  0x00007fffffffcba0 in ?? ()
#5  0x00007ffff69f26a1 in llint_entry () at ../../Source/WTF/wtf/RefPtr.h:79
---


Similar issues can be reproduced with:
---
Object.prototype.localeMatcher = "invalid"; 
Intl.NumberFormat.prototype.format(0);
---

And:
---
Object.prototype.localeMatcher = "invalid"; 
Intl.Collator.prototype.resolvedOptions();
---

And:
---
Object.prototype.localeMatcher = "invalid";
Intl.Collator.prototype.compare();
---
Comment 1 Radar WebKit Bug Importer 2016-06-15 17:17:50 PDT
<rdar://problem/26826791>
Comment 2 André Bargull 2017-04-25 08:23:52 PDT
Does no longer reproduce at r215724, because the Intl prototypes are no longer Intl object instances.